[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Electricity (was: bug#5586: 23.1.92.1; Electric indentation and hungry b
From: |
Stefan Monnier |
Subject: |
Electricity (was: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode)) |
Date: |
Sun, 28 Mar 2010 21:47:07 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Electricity (was: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode)),
Stefan Monnier <=