Search code examples
elispxemacs

XEmacs command for moving to matching brace in cc-mode


Is there a built-in or 3rd party elisp command to move to the matching brace in cc-mode?

I currently use (paren-set-mode 'paren t) to have XEmacs highlight the matching brace or paren, but when the brace is off the screen in a piece of code with nested if blocks, it would be very useful to have a command to jump to the matching brace.

Something similar to M-C-f and M-C-b but for {} rather than ().


Solution

  • C-M-f and C-M-b should work for { and } as well.