While editing a long C++ file, I use rtags to jump around. It would be very handy for me to know where I am in terms of where the cursor is relative to the classes-functions. For example, it would be great if I could have something similar to imenu that would echo Class A -> function F for the current position of the cursor.

I believe that some version of this does exist even in vanilla Emacs, it's only that I cannot find it.


I think you're looking for which-function-mode (which is indeed a standard feature).

  • That is what I need. Do you probably know how can I scroll the mode line to the right, since I usually have my screen vertically split and the end of my mode line is not visible? – foki Jul 8 '20 at 20:17

Your Answer

