From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.help Subject: Re: jumping to peer parenthesis/brace Date: Thu, 22 Jun 2006 10:20:59 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <874pyddxno.fsf@vh213602.truman.edu> References: Reply-To: belanger@truman.edu NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150990905 12955 80.91.229.2 (22 Jun 2006 15:41:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Jun 2006 15:41:45 +0000 (UTC) Cc: belanger@truman.edu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 22 17:41:44 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FtRJI-0006Ud-Fq for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Jun 2006 17:41:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FtRJI-0002Gy-0L for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Jun 2006 11:41:36 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!transit.news.xs4all.nl!xs4all!border2.nntp.ams.giganews.com!nntp.giganews.com!sn-ams-06!sn-xt-ams-04!sn-post-ams-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:2Czi0ffp/H2z+Hf3F9ydRBl0FFo= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 19 Original-Xref: shelby.stanford.edu gnu.emacs.help:139976 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35600 Archived-At: Andreas Roehler 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.