Emacs nxhtml-mode for erb document

Emacs 24 下使用 nxhtml 貌似问题蛮多的:
1. 全文高亮 BUG
2. 报 warning

用以下代码可以解决:

       
(setq mumamo-background-colors nil)

(eval-after-load "bytecomp"
  '(add-to-list 'byte-compile-not-obsolete-vars
                'font-lock-beginning-of-syntax-function))
(eval-after-load "bytecomp"
  '(add-to-list 'byte-compile-not-obsolete-vars
              'font-lock-syntactic-keywords))


我的安装方法:
(autoload 'eruby-nxhtml-mumamo-mode "autostart.el" "Edit erb document." t)
(add-to-list 'auto-mode-alist '("\\.erb" . eruby-nxhtml-mumamo-mode))


虽然功能是比 rhtml-mode 要强大,可以根据 pointer 所在位置自动切换 minor mode,但有一点点小问题还是让我比较不适应,还是先用着 rhtml-mode 吧。

你可能感兴趣的:(document)