Next: Which Function Mode, Previous: Moving by Defuns, Up: Defuns [Index]
The Imenu facility offers a way to find the major definitions in a file by name. It is also useful in text formatter major modes, where it treats each chapter, section, etc., as a definition.
imenu
‘M-x imenu’
If you type ‘M-x imenu’, it reads the name of a definition using the minibuffer, then moves point to that definition. You can use completion to specify the name; the command always displays the whole list of valid names.
imenu-auto-rescan
Rescanning happens automatically if you set ‘imenu-auto-rescan’ to a non-‘nil’ value.