* Sebastian Schubert (2008-04-17) writes:

> is it possible to make TeX-insert-macro remember the last macro in math
> and in text mode, respectivly?

No, `TeX-insert-macro' will simply alter the value of
`TeX-default-macro' which will be used as default the next time
`TeX-insert-macro' is called.

> I tend to use one kind of macros only in
> text mode and the other kind only in math mode.  If not, this is a
> feature request. :)

Hm, one could probably use predicates for this.  The value of
`TeX-macro-default' could e.g. be '((texmathp . "alpha") (t . "ref"))
and if `texmathp' returns non-nil, \alpha would be inserted, otherwise
\ref.  If a different macro is chosen, the respective cdr would have to
be updated.

-- 
Ralf


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

Reply via email to