[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] AucTeX & Emacs electricity
From: |
gojjoe |
Subject: |
[AUCTeX-devel] AucTeX & Emacs electricity |
Date: |
Sun, 11 Sep 2016 09:42:23 +0200 |
User-agent: |
Thunderbird/666 |
Dear all,
I just tried out Mosè's recommendation to set
LaTeX-electric-left-right-brace to t, and see some pros and
cons with respect to Emacs's electric-pair-mode:
– LaTeX-electric-left-right-brace (only):
pros: typing "\bigl(" produces "\bigl(\bigr)" with point in
between;
cons: deleting the left parenthesis of "()" leaves ")";
also, typing "\(" on a region will just add it to the right
of the region (or overwrite it, if delete-selection-mode is
t) rather than enclosing it.
– electric-pair-mode (only):
pros: deleting the left parenthesis of "()" deletes the full
pair;
cons: typing "\bigl(" produces "\bigl()" (understandably).
Unfortunately I see that these electricities don't work well
together, because typing "(" will produce "())", or typing
"\bigl(", "\bigl(\bigr))"
Would it be possible to add the "delete full pair" option in
AucTeX? Also, is there a need to add some "safeguard" if
electric-pair-mode is enabled? (There are some old posts by
Mosè and Stefan Monnier about the latter point.)
Cheers!
J
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-devel] AucTeX & Emacs electricity,
gojjoe <=