summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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)