From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: jump between if-fi Date: Mon, 31 Dec 2007 00:23:07 +0100 Message-ID: <4778285B.8020204@gmail.com> References: <87y7bbpz12.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199057039 21752 80.91.229.12 (30 Dec 2007 23:23:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Dec 2007 23:23:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: reader@newsguy.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 31 00:24:13 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J97Vq-0000wu-7J for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Dec 2007 00:24:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J97VU-0001sR-KN for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Dec 2007 18:23:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J97V9-0001qZ-Pj for help-gnu-emacs@gnu.org; Sun, 30 Dec 2007 18:23:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J97V5-0001o8-IC for help-gnu-emacs@gnu.org; Sun, 30 Dec 2007 18:23:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J97V5-0001o1-DP for help-gnu-emacs@gnu.org; Sun, 30 Dec 2007 18:23:23 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J97V4-0004EU-TJ for help-gnu-emacs@gnu.org; Sun, 30 Dec 2007 18:23:23 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:60643 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1J97V2-0005PH-4O; Mon, 31 Dec 2007 00:23:21 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <87y7bbpz12.fsf@newsguy.com> X-Antivirus: avast! (VPS 071230-0, 2007-12-30), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1J97V2-0005PH-4O. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1J97V2-0005PH-4O 3d1a8ae0bf8a9df201464c849a3d07e9 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:50396 Archived-At: reader@newsguy.com wrote: > I hope this isn't one of those things that is just plain obvious to > lookup in emacs but I'm striking out with M-x apropos > > How can I make emacs do something similar with if-fi constructs as it > does with parens? > > Even better I'd like the kind of behaviour one can get in vim with > parens, where not only does the syntax coloring show the other paren > but you can jump there with a Ctrl-% Maybe you mean %, not C-%? You can in Emacs too, using Viper. But see http://www.emacswiki.org/cgi-bin/wiki/ViKeys http://www.emacswiki.org/cgi-bin/wiki/ViAndEmacs > I know emacs can do that as well but not as easily. But anyway, I use > emacs more and would like to turn its powers used in paren recognition > against the `if fi', `while done', `for done'... etc. one uses in > shell scripting.