On Fri, Oct 02, 2009 at 07:07:59AM +0200, David Kastrup wrote: > Thomas <[email protected]> writes: > > > Hi, > > > > maybe this is a naive question, but is it somehow possible to have > > lua snippets within TeX code highlighted as lua code? This snippets > > are delimited with > > > > \startluacode > > > > \stopluacode > > > > tags. Could I convince aucTeX to use lua-mode.el > > highlighting for these snippets? > > Changing modes in mid-buffer is not something supported by Emacs in > general. There is something called mmm-mode (multiple major mode) for > this problem space available somewhere, but I don't think somebody > adapted it for AUCTeX yet.
in fact, there are several libraries that implement multiple major modes in a single buffer: <http://www.emacswiki.org/emacs/MultipleModes> HTH -- Joost Kremers, PhD University of Frankfurt Institute for Cognitive Linguistics Grüneburgplatz 1 60629 Frankfurt am Main, Germany _______________________________________________ auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex
