|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
lua snippets in TeXHi,
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? Thanks Thomas _______________________________________________ auctex mailing list auctex@... http://lists.gnu.org/mailman/listinfo/auctex |
|
|
Re: lua snippets in TeXThomas <thomas.schmitz@...> 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. -- David Kastrup _______________________________________________ auctex mailing list auctex@... http://lists.gnu.org/mailman/listinfo/auctex |
|
|
Re: Re: lua snippets in TeXOn Fri, Oct 02, 2009 at 07:07:59AM +0200, David Kastrup wrote:
> Thomas <thomas.schmitz@...> 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 auctex@... http://lists.gnu.org/mailman/listinfo/auctex |
|
|
Re: lua snippets in TeX> Changing modes in mid-buffer is not something supported by Emacs in
> general. Pity. That whould be great for switching the input encoding somewhere in the buffer after \inputencoding-command. best regards, -- Plamen Tanovski Prager Str. 125, 04317 Leipzig Tel. (03 41) 3 08 57 60 _______________________________________________ auctex mailing list auctex@... http://lists.gnu.org/mailman/listinfo/auctex |
|
|
Re: Re: lua snippets in TeXPlamen Tanovski <pgt@...> writes:
>> Changing modes in mid-buffer is not something supported by Emacs in >> general. > > Pity. That whould be great for switching the input encoding somewhere > in the buffer after \inputencoding-command. No, it wouldn't. Changing the mode is not the same as changing the buffer coding system. The coding system applies for reading and writing the buffer, the mode for interpreting its contents. Multiple encodings in one buffer don't make much sense in my book. -- David Kastrup _______________________________________________ auctex mailing list auctex@... http://lists.gnu.org/mailman/listinfo/auctex |
|
|
Re: lua snippets in TeXJoost Kremers <joostkremers <at> fastmail.fm> writes:
> > On Fri, Oct 02, 2009 at 07:07:59AM +0200, David Kastrup wrote: > > > > 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 > Thank you, David and Joost. two-mode.el looks like exactly what I need; I'll give it a try and see if it works with auctex. I'll report here! Best Thomas _______________________________________________ auctex mailing list auctex@... http://lists.gnu.org/mailman/listinfo/auctex |
| Free embeddable forum powered by Nabble | Forum Help |