Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: make emacs handle 'if fi' like it does parens
Date: Sat, 12 Feb 2022 08:35:06 -0800	[thread overview]
Message-ID: <875ypk9h6t.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87sfso2ifc.fsf@local.lan>

hput <hputn3@zohomail.com> writes:

> Version: GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit,\
> cairo version 1.16.0, Xaw3d scroll bars) of 2021-11-05
>
> Seems like google is getting harder and harder to find the right
> strings to unearth wanted info.
>
> We have a fine manual but it doesn't respond well to the hill-billy
> strings my imagination supplies when using the info 'i' or 's'
> searches. 
>
> At any rate, I'm not having much luck looking for ways to make emacs
> handle 'if', 'fi' in any shell-scripting mode, like it does parens in
> things like cperl-mode.
>
> I'd like to be able to jump between matching `if fi' and have the
> matching pardner hilite as when putting cursor just after closing
> paren.
>
> If it is possible using standard emacs commands already, maybe
> someone will be kind enough to mention the combinations?  If not, then
> .. where might I find code that does what I'm after?

(This probably should have gone to emacs.help, not emacs.gnus.general,
fwiw)

A brief test indicates that `forward-sexp' and `backward-sexp', bound to
C-M-f and C-M-b, do what you want.



  reply	other threads:[~2022-02-12 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-12 15:50 hput
2022-02-12 16:35 ` Eric Abrahamsen [this message]
2022-02-13 14:28   ` hput

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=875ypk9h6t.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).