Search code examples
ruby-on-railsrubyemacserubynxhtml

eruby-nxhtml-mode not loading properly


I have this line in my .emacs file:

(add-to-list 'auto-mode-alist '(".+\\.html\\.erb$" . eruby-nxhtml-mumamo))

however, erb chunks aren't correctly recognised. After I run M-x eruby-nxhtml-mumamo everything works like a charm. Any ideas how to fix this?


Solution

  • change "eruby-nxhtml-mumamo" to "eruby-nxhtml-mumamo-mode"