all repos — nixfiles @ f3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8

System and user configuration, managed by nix and home-manager

Emacs: only enable moz-minor-mode in javascript if loaded
Alan Pearce alan@alanpearce.co.uk
Fri, 24 May 2013 10:51:42 +0100
commit

f3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8

parent

7dc707c8c32b972ed505f16a3bb1f865766003b5

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -992,7 +992,8 @@ (use-package js3   :mode ("\\.js\\'" . js3-mode)
   :config (progn
             (defun ap/javascript-setup ()
-              (moz-minor-mode t)
+              (if (featurep 'moz)
+                  (moz-minor-mode t))
               (autopair-mode -1)
               (auto-indent-mode -t))
             (add-hook 'js3-mode-hook #'ap/javascript-setup)