[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: jumping to peer parenthesis/brace
From: |
Jay Belanger |
Subject: |
Re: jumping to peer parenthesis/brace |
Date: |
Thu, 22 Jun 2006 10:20:59 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Andreas Roehler <andreas.roehler@online.de> writes:
...
> Somewhere I picked `match-paren': it allows you to jump to and fro
> without changing the key:
>
> (defun match-paren (arg)
> "Go to the matching parenthesis if on parenthesis otherwise insert %."
...
> (global-set-key "%" 'match-paren)
> or better
> (define-key emacs-lisp-mode-map "%" 'match-paren)
>
> Attention: If editing format strings, it might happen you are
> over a `(' while inserting a `%' is in your mind.
In that case, you can quote the `%':
C-q %
to insert it.