Go to top of function in emacs

So, you are in the middle of a 300 line function and want to know what it is. How do you do this?

+7
source share
2 answers

MCa goes to the beginning of the current function.

MCe jumps to the end of the current function

It works for elisp and c-derived languages ​​(e.g. Java).

+8
source

As a rule, I have enabled helper mode which-function , which displays the current function in the mode line (using this in my emacs configuration):

 (require 'which-func) (which-function-mode t) 
+7
source

All Articles