all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Arnaldo Mandel" <am@ime.usp.br>
To: help-gnu-emacs@gnu.org
Subject: Re: jump between if-fi
Date: Wed, 9 Jan 2008 07:43:12 -0200	[thread overview]
Message-ID: <72df5b830801090143j7c9569acgc3f7f5ba9a857850@mail.gmail.com> (raw)
In-Reply-To: <87y7bbpz12.fsf@newsguy.com>


[-- Attachment #1.1: Type: text/plain, Size: 1040 bytes --]

On Dec 30, 2007 9:02 PM, <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-%
>
> 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.
>

In case I am not too late, I suggest looking at  gap-mode.el.  It was made
for the GAP computer algebra system, which uses a language with this kind of
syntax.
It does a good job of matching and indentation.  It does not do exactly what
you want, but since the adequate matching functions are there, you can
probably
get some strong leverage.

am

[-- Attachment #1.2: Type: text/html, Size: 1349 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  parent reply	other threads:[~2008-01-09  9:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-30 23:02 jump between if-fi reader
2007-12-30 23:23 ` Lennart Borgman (gmail)
2007-12-31  6:29   ` reader
2007-12-31  8:12     ` Thierry Volpiatto
2007-12-31 14:41       ` reader
2008-01-01 15:47   ` reader
     [not found]   ` <mailman.5533.1199082573.18990.help-gnu-emacs@gnu.org>
2008-01-09  5:40     ` Stefan Monnier
2007-12-31 16:24 ` Alan Mackenzie
2008-01-01  2:29   ` reader
2008-01-01 14:18     ` Alan Mackenzie
2008-01-01 15:39       ` reader
2008-01-01 15:53     ` Torturedly threaded .emacs portability. [Was: jump between if-fi] Alan Mackenzie
2008-01-01 15:53       ` reader
2008-01-02  5:00       ` Mike Mattie
2008-01-05 18:33     ` jump between if-fi reader
2008-01-09  9:43 ` Arnaldo Mandel [this message]
     [not found] <mailman.5524.1199055779.18990.help-gnu-emacs@gnu.org>
2008-01-01 18:12 ` Xah Lee
2008-01-01 19:12   ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=72df5b830801090143j7c9569acgc3f7f5ba9a857850@mail.gmail.com \
    --to=am@ime.usp.br \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.