Hello. Is there a package in emacs that allows you to navigate through the buffer not in terms of "character-forward, previous-string, etc.", but somewhere like this - "next-expression, argument list"? Interested in supporting js, python, html, css

  • one
    As far as I know (and this area is one of the areas in which I often look), now there are no such tools. There are, of course, paredit and his younger brother parinfer , but they are intended only for lisps. There are smartparens , which covers many cases, but not AST. - D-side

1 answer 1

There are very convenient navigation features.

Create a mini buffer with functions, classes and variables. See extensions for helm, ido, ivy

 Mx imenu 

Moving through functions in the current buffer

 CMa 

Move to beginning of current or preceding defun (beginning-of-defun).

 CMe 

Move to end of current or following defun (end-of-defun).

 CMh 

Put region around whole current or following defun (mark-defun).

Go to the definition of a function or variable. Works with GNU global, ctags

 M-. 

Jump to the character seen in current active buffers.

 C-; 

Links