Hi,
What is the command to match brackets in Emacs (the equivalent of the '%' command in vim)?
Hi,
What is the command to match brackets in Emacs (the equivalent of the '%' command in vim)?
C-M-f
, or M-x forward-sexp
, goes forward to the closing brace, or to the opening brace in the next set of braces. C-M-b
, or M-x backward-sexp
, goes backward to the opening brace, or to the closing brace in the next set of braces. These commands will work for parentheses, square brackets, curly braces, angle brackets, etc., and can be customized to recognize other delimiters.
There is also a 'show-paren-mode'. For navigation, I think it's better C-M-nand C-M-n