[Haskell-cafe] emacs literate haskell mode

Rogan Creswick creswick at gmail.com
Tue Sep 27 23:42:42 CEST 2011

On Tue, Sep 27, 2011 at 11:24 AM, Mathijs Kwik <mathijs at bluescreen303.nl> wrote:
> Hi all,
> I'm using haskell-mode for emacs and I'm using it to open a literate
> haskell file which uses latex.
> This works fine, haskell code has syntax highlighting, and special
> symbols like lambda get used.
> However, the latex itself is dull and gree, no highlighting/coloring there.
> Does anyone know if it's possible to turn on latex highlighting in
> literate haskell mode?
> I tried switching to latex-mode, which does the trick (but it chokes
> on the haskell code inbetween), so I'm pretty sure emacs has
> everything it needs, but haskell-mode needs to enable this somehow.

I'm not certain this /is/ easily in Emacs capabilities.  Emacs isn't
really set up to support more than one major mode at a time -- there
is, however, an extension that can do this.  The challenge is defining
the start and end of the areas of each 'mode' in the buffer; I've
never had very much success, but depending on the delimiters used in
the literal haskell syntax you're working with, you may be able to set
it up:



> Any help would be great.
> Greetings,
> Mathijs
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list