diff options
author | Alan Pearce | 2013-05-24 10:51:42 +0100 |
---|---|---|
committer | Alan Pearce | 2013-05-24 10:51:42 +0100 |
commit | f3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8 (patch) | |
tree | 87e32bb1de74ec23db4e526f7266b3e100d28935 /emacs/init.el | |
parent | 7dc707c8c32b972ed505f16a3bb1f865766003b5 (diff) | |
download | dotfiles-f3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8.tar.lz dotfiles-f3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8.tar.zst dotfiles-f3f77f580bd9d0ebcf49fb471e1913a26ac2f7e8.zip |
Emacs: only enable moz-minor-mode in javascript if loaded
Diffstat (limited to 'emacs/init.el')
-rw-r--r-- | emacs/init.el | 3 |
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) |