* Ralf Angeli (2005-11-01) writes:

> * Jens Kubieziel (2005-11-01) writes:
>
>> when typing sub- or superscripts in math mode I often need curly braces.
>> So I want to customize AUCTeX that everytime when I press `_' or `^' it
>> automagically appends `{}' and places the cursor inside. I guess this
>> can be done like described in 'Style Files' in auctex.info. But actually
>> I'm not sure how to do it in detail (without any lisp knowledge).
>
> How about the attached patch?  Maybe the respective variable and
> function should be named `TeX-insert-exp-and-subscript' instead of
> `TeX-electric-exp-and-subscript' because the functionality does not
> really feel like true electricity.  Other suggestions for the name?

Committed a slightly changed version.  The name of the variable for
controllig this feature is now `TeX-electric-sub-and-superscript'.

-- 
Ralf


_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to