[Top][All Lists]

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

Re: [AUCTeX] completion for musixtex-macros

From: Ralf Angeli
Subject: Re: [AUCTeX] completion for musixtex-macros
Date: Mon, 08 Dec 2008 22:18:16 +0100

* Stefan Stefinsky (2008-12-08) writes:

> How can I create a style file (musixtex.el) and tell AUCTeX to phrase
> for it. So that TeX-complete-symbol will work for the music commands when the 
> music environment is loaded?

See (info "(auctex)Style Files") <-- Type `C-x C-e' here.

> I tried to add a style-hook
> (TeX-add-style-hook
>  "latex"
>  (lambda ()
>    (LaTeX-add-environments
>     '("music" ))
>     (TeX-add-symbols
>     '("alaligne"))))
>  but emacs gives the answer:
> " Symbol's value as variable is void: TeX-add-style-hook" 

It would have to be `(TeX-add-style-hook "musixtex" ...)' and you have
to put that into a file called musixtex.el which you should save in a
directory corresponding to `TeX-style-private'.  That means you can add
a directory if its value is nil.


reply via email to

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