
On 28 September 2011 16:25, Mathijs Kwik
I tried mmm-mode with a few configurations, but I get into trouble when using other haskell-mode features. Also, the wiki page on haskell-mode ( http://www.haskell.org/haskellwiki/Haskell_mode_for_Emacs#Literate_Haskell ) specifically mentions mmm-mode tricks are not needed anymore and shouldn't be used.
Its built-in support does a great job to keep all code blocks working the way I want, but the latex parts are just dead text.
I wouldn't mind to switch manually, as most of the time I'm either coding (touching only small parts of latex), or writing (leaving the code parts as-is). However, latex mode seems to trip over certain code parts ($ sign in haskell code for example). So it seems it's not smart enough to just ignore code blocks.
Probably I need to look into latex mode a bit more, so it becomes off-topic for this list.
If you're using AucTeX, there's a way that you can specify that \begin{code}...\end{code} is recognised as a verbatim (i.e. "not LaTeX") environment: http://stackoverflow.com/questions/3274091/auctex-emacs-problem-with-charact... -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com