summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-05-24 10:51:42 +0100
committerAlan Pearce2013-05-24 10:51:42 +0100
commitf3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8 (patch)
tree87e32bb1de74ec23db4e526f7266b3e100d28935 /emacs
parent7dc707c8c32b972ed505f16a3bb1f865766003b5 (diff)
downloaddotfiles-f3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8.tar.lz
dotfiles-f3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8.tar.zst
dotfiles-f3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8.zip
Emacs: only enable moz-minor-mode in javascript if loaded
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index d5c9cb1..77f12c2 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -992,7 +992,8 @@ Works with: arglist-cont-nonempty, arglist-close."
   :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)