Emacs: only enable moz-minor-mode in javascript if loaded
Alan Pearce alan@alanpearce.co.uk
Fri, 24 May 2013 10:51:42 +0100
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M emacs/init.el → emacs/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)