Emacs: move mumamo workaround into nxhtml's use-package form
Alan Pearce alan@alanpearce.co.uk
Wed, 08 May 2013 11:29:34 +0100
1 files changed, 4 insertions(+), 7 deletions(-)
jump to
M emacs/init.el → emacs/init.el
@@ -1013,17 +1013,14 @@ :defer t :mode (("\\.php\\'" . html-mumamo-mode)) :idle (load (expand-file-name "nxhtml/autostart" *el-get-dir*)) :config (progn + (when (and (equal emacs-major-version 24) + (> emacs-minor-version 1)) + (setq mumamo-per-buffer-local-vars + (delq 'buffer-file-name mumamo-per-buffer-local-vars))) (setq mumamo-chunk-coloring 4 nxhtml-skip-welcome t nxhtml-autoload-web nil) (nxhtml-menu-mode 0))) - -(when (and (equal emacs-major-version 24) - (equal emacs-minor-version 2)) - (use-package mumamo - :defer t - :config (progn (setq mumamo-per-buffer-local-vars - (delq 'buffer-file-name mumamo-per-buffer-local-vars))))) (use-package php-mode :mode ("\\.php\\'" . php-mode)