[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Auctex prompting for optional arguments
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX] Auctex prompting for optional arguments |
Date: |
Tue, 18 Sep 2018 01:34:28 +0200 |
Hi Santiago,
On Mon, Sep 17, 2018 at 4:33 AM Santiago Mejia <address@hidden> wrote:
>
> I've been trying to find information about this in the manual and online, but
> have not had any luck so far.
>
> My general question: is there a way to get AUCTeX to always prompt me for an
> optional argument of a specific command when I invoke it with
> TeX-insert-macro (i.e. C-c )? (like it does when you invoke, for instance,
> \newcommand)
>
> My specific question: is there a way to get Auctex to prompt me automatically
> for an optional overlay specification when I invoke the \alert command with
> TeX-insert-macro (i.e. C-c "alert")?
You have to manually patch the file style/beamer.el in your AUCTeX
installation. Replace the line
'("alert" 1)
with
'("alert" TeX-arg-beamer-overlay-spec 1)
Remember to byte-recompile the file with M-x byte-recompile-file RET RET.
Bye,
Mosè