this post was submitted on 15 Nov 2023
1 points (100.0% liked)

Emacs

313 readers
2 users here now

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

Get Emacs

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

founded 1 year ago
MODERATORS
 

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)

top 1 comments
sorted by: hot top controversial new old
[–] rswgnu@alien.top 1 points 1 year 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.