After upgrading to mmm-mode 1.05 my mixed mode html/ruby mmm mode got
into an infinite loop while loading these buffers, making it impossible
to edit such files in XEmacs. Downgrading to 1.03 while leaving
everything else the same solved the issue for me. My mmm settings from
init.el are included below.
(setq mmm-submode-decoration-level 2)
(set-face-background 'mmm-output-submode-face "Navy")
(set-face-background 'mmm-code-submode-face "DarkSlateBlue")
(set-face-background 'mmm-comment-submode-face "DarkOliveGreen")
(mmm-add-classes
'((erb-code
:submode ruby-mode
:match-face (("<%#" . mmm-comment-submode-face)
("<%=" . mmm-output-submode-face)
("<%" . mmm-code-submode-face))
:front "<%[#=]?"
:back "%>"
:insert ((?% erb-code nil @ "<%" @ " " _ " " @ "%>" @)
(?# erb-comment nil @ "<%#" @ " " _ " " @ "%>" @)
(?= erb-expression nil @ "<%=" @ " " _ " " @ "%>" @))
)))
(add-hook 'html-mode-hook
(lambda ()
(setq mmm-classes '(erb-code))
(mmm-mode-on)))
|