[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: [AUCTeX] lua snippets in TeX
From: |
Joost Kremers |
Subject: |
Re: Re: [AUCTeX] lua snippets in TeX |
Date: |
Fri, 2 Oct 2009 10:37:24 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, Oct 02, 2009 at 07:07:59AM +0200, David Kastrup wrote:
> Thomas <address@hidden> 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