auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Last TeX-insert-macro macro different in math and text mode


From: Ralf Angeli
Subject: Re: [AUCTeX] Last TeX-insert-macro macro different in math and text mode?
Date: Thu, 17 Apr 2008 22:44:24 +0200

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]