TransWikia.com

How to move by defun without moving up a level?

Emacs Asked by cammil on November 25, 2021

I am attempting to navigate methods in a file. Typically these are javascript or python files, which have a classes at the "top level", which in turn have methods nested within those definitions.

When I try to navigate by defun (end-of-defun or beginning-of-defun) the cursor will often end up at the next or previous class definition, not the next or previous method.

Is this the intended behaviour? How can I navigate by the methods?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP