From adcfe2752fa9a229953256c32c68f67d28f0aaf2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 30 May 2013 15:07:41 +0100 Subject: Emacs: replace js3-mode with js2-mode --- emacs/init.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'emacs') diff --git a/emacs/init.el b/emacs/init.el index 95363eba..0fafe5fb 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -1010,18 +1010,18 @@ Works with: arglist-cont-nonempty, arglist-close." (comint-send-string (inferior-moz-process) "BrowserReload();")))) -(use-package js3 - :mode ("\\.js\\'" . js3-mode) +(use-package js2 + :ensure t + :mode ("\\.js\\'" . js2-mode) :config (progn (defun ap/javascript-setup () (if (featurep 'moz) (moz-minor-mode t)) (autopair-mode -1) (auto-indent-mode -1)) - (add-hook 'js3-mode-hook #'ap/javascript-setup) - (setq js3-indent-level 4 - js3-indent-tabs-mode t - js3-global-externs '("$")))) + (add-hook 'js2-mode-hook #'ap/javascript-setup) + (setq js2-basic-offset 4 + js2-global-externs '("$")))) (use-package mustache-mode :ensure t -- cgit 1.4.1