all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ivan Kanis <ivan.kanis@googlemail.com>
Cc: emacs devel <emacs-devel@gnu.org>
Subject: Re: Electric command in sh mode
Date: Thu, 01 Dec 2011 12:51:33 -0500	[thread overview]
Message-ID: <jwvvcq0b2pp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87wraghauo.fsf@kanis.fr> (Ivan Kanis's message of "Thu, 01 Dec 2011 10:58:39 +0100")

> I have implemented electric command for shell script. It will re indent
> when entering '}', 'fi', 'done', etc.. If there is interest I can write
> a patch to include it in emacs proper.

If you can write a patch that makes it work with electric-indent-mode
(new in Emacs-24), then I'd be happy to consider it for Emacs-24.2.

Such a patch should not feel obliged to avoid changing electric.el, tho
any changes made there should be generic rather than specific to
shell-scripts.


        Stefan



  reply	other threads:[~2011-12-01 17:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01  9:58 Electric command in sh mode Ivan Kanis
2011-12-01 17:51 ` Stefan Monnier [this message]
2011-12-02 15:25 ` J. David Boyd

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=jwvvcq0b2pp.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=ivan.kanis@googlemail.com \
    /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.