I am reviewing some code in emacs that has a series of for loops that span several pages. The indentations done by the author are poor so it is not easy to tell where loops begi
You can use forward-list
(C-M-n
) and backward-list
(C-M-p
) to navigate forward and backward over a parenthetical group. (Also try forward-sexp
(C-M-f
) and backward-sexp
(C-M-b
)).
Check out the EmacsWiki on Navigating Parentheses, the Emacs manual node on matching paretheses, and this SO thread on matching brackets.