1

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
2

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

1
  • 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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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