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)

1 point

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.

permalink
report
reply

Emacs

!emacs@communick.news

Create post

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

  • Windows
  • Mac OS X
  • GNU/Linux and BSD (Just get it from your distribution’s package manager)

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for “emacs” and “vi” link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

Community stats

  • 18

    Monthly active users

  • 562

    Posts

  • 2.4K

    Comments