[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: jump between if-fi

From: Thierry Volpiatto
Subject: Re: jump between if-fi
Date: Mon, 31 Dec 2007 09:12:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

address@hidden writes:

> "Lennart Borgman (gmail)" <address@hidden> writes:
>> address@hidden 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-%?
> Yes I did.
>> You can in Emacs too, using Viper. But see
> Thanks for those ... I knew some it but found some more.
> But no, I don't want to try to turn emacs into vi so much as turn
> emacs power loose on if-fi while-done etc constructs.
>>> 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.
> That was my my main question and I didn't notice anything on those
> sites about that... I hope I just missed it.
> So still wondering how to get paren type actions to work on if-fi type
> shell constructs.

While you are in a script shell you have keybindings for case, if, 
while getopts, etc... to construct all this statements.
If you do C-h m you will find them.
A+ Thierry
Pub key:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]