unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Electricity (was: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode))
       [not found] ` <87aatsuqbu.fsf@stupidchicken.com>
@ 2010-03-29  1:47   ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2010-03-29  1:47 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

> I am still not happy about the way it's implemented in either mode---I
> think Emacs needs some kind of centralized mechanism for this---but that
> is a longer-term project.

Agreed.  If someone could try to survey the different kinds of
"electricity" we have in Emacs packages, and the different ways they can
be configured, it would be a good first step.

Obvious one kind of electricity is when some keys (like ; } and such)
cause reindentation of the current line additionally to self-insert.

Other forms I would consider as potentially connected include:
- SPC in auto-fill-mode
- inserting () when you press just (
- do abbrev expansion when you hit SPC
- newline-and-indent as an electric form of newline
- insert `` or " or '' when you press " in LaTeX


        Stefan




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-29  1:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <201002170031.46472.pogonyshev@gmx.net>
     [not found] ` <87aatsuqbu.fsf@stupidchicken.com>
2010-03-29  1:47   ` Electricity (was: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode)) Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).