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.


1 Answer 1


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?
    – yujaiyu
    Commented Jul 8, 2020 at 20:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.