all repos — archive/dotfiles @ da8aa0c8213e47e4d4327ea9e3bdf0c97769961b

Superseded by nixfiles

Emacs: move mumamo workaround into nxhtml's use-package form
Alan Pearce alan@alanpearce.co.uk
Wed, 08 May 2013 11:29:34 +0100
commit

da8aa0c8213e47e4d4327ea9e3bdf0c97769961b

parent

7b4a89e95876cea8c283f018b079d72e4d8ed2c0

1 files changed, 4 insertions(+), 7 deletions(-)

jump to
M emacs/init.elemacs/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)