With emacs, how to go to the pairing (balancing) parentheses
Solution 1:
Use C-M-right
and C-M-left
(respectively backward-sexp
and forward-sexp
) to go to the beginning or the end of the current expression. This works for parenthesis pairs but also for plain words.
Solution 2:
As mentioned in emacs wiki (http://www.emacswiki.org/emacs/NavigatingParentheses):
C-M-n forward-list Move forward over a parenthetical group
C-M-p backward-list Move backward over a parenthetical group
C-M-f forward-sexp Move forward over a balanced expression
C-M-b backward-sexp Move backward over a balanced expression
C-M-k kill-sexp Kill balanced expression forward
C-M-SPC mark-sexp Put the mark at the end of the sexp.
https://superuser.com/questions/677516/how-do-i-jump-to-the-opening-or-closing-paren-brace-in-emacs
Solution 3:
For parentheses, braces and brackets just double clicking on them does the trick.