python emacs jump to end of function code example
Example: Jump to beginning of function in emacs
M-C-a jumps to the beginning of the current function.
M-C-e jumps to the end of the current function
It works for elisp and c-derived languages (e.g. Java).