[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] completion for musixtex-macros
From: |
Stefan Stefinsky |
Subject: |
[AUCTeX] completion for musixtex-macros |
Date: |
Mon, 8 Dec 2008 21:37:48 +0100 |
User-agent: |
KMail/1.9.10 |
Dear AuCTeX team,
Since last summer I switched to emacs/auctex (from Kile) and I'm pretty
glad with it. I also use MusiXTEX, its a set of TeX-macros to typeset
polyphonic music. Here a TeX- code torso:
\usepackage{musixtex}%
\input musixper.tex%
\begin{music}
\startpiece%% no arguments.
\NOTes% no arguments
\zmidstaff{text}% one argument within braces
\zcharnotep{text}% two args, P=pich, text in braces
\islurdnp% three args: d= direction n=number p= pich -no braces
\end{music}
Some commands are quite long, for example: \alaligne, \interinstrument
\writethebarno ... and there are lots of possibillitys to mistype.
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?
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"
Is it because music is an unknown environment in emacs/auctex?
I have also set this in my .emacs
(setq-default TeX-master nil)
(setq TeX-parse-self t)
(setq TeX-auto-save t)
Thanks for your help and this great tool.
Best regards
Stefan
My Emacs system: GNU Emacs 22.1.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9)
of 2008-05-03 on terranova, modified by Ubuntu
--
Stefan Stefinsky
- Music & Theatre -
www.stefinsky.de
www.trampelmuse.de
- [AUCTeX] completion for musixtex-macros,
Stefan Stefinsky <=