Jump to matching parenthesis

With the cursor on an opening parenthesis ([{ etc, use C-M-n to jump to the matching closing one. This works even if there are nested parentheses. You can use C-M-p to go back.

Emacs has other ways of moving by parentheses, but this is the one I find most useful.

  • Clément Pit-Claudel

    Neat suggestion. I usually use C-M-f actually; it integrates better with modes that use SMIE (for example, if I have a block defined by begin … end in OCaml, C-M-f will go from being to eng, while C-M-n will go from being to whichever closing parenthesis it finds between begin and end). Also, C-M-f match C-f and M-f nicely.