Literate Haskell editing with Emacs and MMM: the $ operator
I've been editing literate (LaTeX-based) Haskell code using Emacs and MMM-mode, using the instructions posted in http://www.haskell.org/pipermail/haskell/2006-April/017855.html There's one annoyance, however: the $ operator in Haskell code ends up being interpreted as the beginning of math mode, completely messing up any font-lock colo(u)ring. Has anyone else found this, and has anyone come up with a good solution? Thanks, Julian
On 26 January 2011 06:07, Julian Gilbey <julian@d-and-j.net> wrote:
I've been editing literate (LaTeX-based) Haskell code using Emacs and MMM-mode, using the instructions posted in http://www.haskell.org/pipermail/haskell/2006-April/017855.html
There's one annoyance, however: the $ operator in Haskell code ends up being interpreted as the beginning of math mode, completely messing up any font-lock colo(u)ring.
Has anyone else found this, and has anyone come up with a good solution?
Last time I tried this, I ended up inserting extra $ just to fix up the syntax highlighting :s Maybe try something like http://www.loveshack.ukfsn.org/emacs/haskell-latex.el instead? -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
On Wed, Jan 26, 2011 at 06:27:31AM +1000, Ivan Lazar Miljenovic wrote:
On 26 January 2011 06:07, Julian Gilbey <julian@d-and-j.net> wrote:
I've been editing literate (LaTeX-based) Haskell code using Emacs and MMM-mode, using the instructions posted in http://www.haskell.org/pipermail/haskell/2006-April/017855.html [...]
Maybe try something like http://www.loveshack.ukfsn.org/emacs/haskell-latex.el instead?
It's awesome! Thank you so much for the pointer - it works like a dream. Julian
participants (2)
-
Ivan Lazar Miljenovic -
Julian Gilbey