From f3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 24 May 2013 10:51:42 +0100 Subject: Emacs: only enable moz-minor-mode in javascript if loaded --- emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/init.el b/emacs/init.el index d5c9cb1b..77f12c2a 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) -- cgit 1.4.1