[Top][All Lists]

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

[AUCTeX-devel] Auctex + mmm-mode tweak request

From: C Y
Subject: [AUCTeX-devel] Auctex + mmm-mode tweak request
Date: Sat, 9 Sep 2006 20:05:11 -0700 (PDT)

Hi!  I've been trying to use the combination of AucTeX and mmm-mode to
edit literate programming files, and I have a question/request. When
trying to use the mmm-mode to edit a pamphlet file with AucTeX, the
syntax highlighting gets messed up by $ included in the source code. 
There are a couple obvious things to do - the "right" one I suppose
being to teach Auctex to fontify only parts of the buffer that are in
tex mode, and the quick one to have it treat anything between
<<something>>= and @ (or other delimiters at user option) as verbatim. 
I took a quick poke at AucTeX but I don't see an obvious way to make it
do this - the list of verbatim environments doesn't seem to have
provisions for beginning and end markers that are different, and
although I'm not sure it looks like the \verb macro code doesn't do
multiple lines.  The best case, which would allow syntax highlighting
to survive in the code chunks without being clobbered by tex-mode, is
to only fontify the tex parts of the file. I rather doubt AucTeX checks
on a line by line or char by char basis if Emacs is still in tex mode,
since that's normally a whole buffer affair - is there some way this
can be done?

Thanks for your time and an excellent Emacs mode!


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

reply via email to

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