I have been exploring the use of imenu in Emacs as a way to navigate functions within buffers. I would like to make imenu automatically select the function currently under the cursor as the default choice when invoked.

Is there any method or configuration that allows imenu to select the function currently under the cursor as the default choice?

(FYI: I am using consult-imenu)

  • rswgnu@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    Just build a tags table over your code base in its root directory, install Hyperbole and activate hyperbole-mode, then a press of M-RET on any function will take you to its definition. No other packages or learning or menus necessary.