Or extend the current TeX-electric-sub-and-superscript to FOUR modes:
0 -- As the current status, turn it off, users type {} as they like in the
Emacs buffer directly.
1 -- As the current status, add a {} after _ or ^ always, and put the
cursor inside the braces.
2 -- Use the minibuffer to type the super/subscripts and add the {} only
for multiple letters; cursor will be placed after your input or }; emtpy or
white space input to the minibuffer will go back the normal buffer and
operate same as 0 (not sure whether it is useful or not, but no hurt at
least?)
3 -- Use the minibuffer to type the super/subscripts and add the {} only
for multiple letters; cursor will be placed after your input or }; emtpy or
white space input to the minibuffer will go back the normal buffer and
operate same as 1
Sorry I would like to update 2 and 3,
2 -- (as 3) go back to 1 instead of 0, since if a person likes 0, it makes
no sense for him/her to use 3.
3 -- (new) keep {} for both single and multiple-letter super/subscripts,
just another way as 1 from minibuffer inputs. I may consider using 3 if
such functions are implemented.
For people do like minibuffer, they will prefer to using either 0 or 1. For
people like minibuffer style, they may like 2 and 3.
Thanks.
--
Adam
_________________________________________________________________
Try Search Survival Kits: Fix up your home and better handle your cash with
Live Search!
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline
_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex