Emacs navigating {parantheses}

Writing a lot of JavaScript I want to navigate to the end of a method, object or similar. Normally I want to go from the beginning parenthesis “{” to the ending one “}”. The font-lock-mode highlights the opposite parenthesis or the region (if it’s outside the visible screen).

Navigation goes quick with C-M-n or C-M-p.

See the Emacs wiki: http://www.emacswiki.org/emacs/NavigatingParentheses

C-h k C-M-n:

C-M-n runs the command forward-list, which is an interactive compiled Lisp
function in `lisp.el’.

It is bound to C-M-n.

(forward-list &optional ARG)

Move forward across one balanced group of parentheses.
With ARG, do it that many times.
Negative arg -N means move backward across N groups of parentheses.
This command assumes point is not in a string or comment.

C-h k C-M-p:

C-M-p runs the command backward-list, which is an interactive compiled Lisp
function in `lisp.el’.

It is bound to C-M-p.

(backward-list &optional ARG)

Move backward across one balanced group of parentheses.
With ARG, do it that many times.
Negative arg -N means move forward across N groups of parentheses.
This command assumes point is not in a string or comment.

Advertisements