summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-05-30 15:07:41 +0100
committerAlan Pearce2013-05-30 15:07:41 +0100
commitadcfe2752fa9a229953256c32c68f67d28f0aaf2 (patch)
treee595146777cca418e57d337503dcef2f4f393aac /emacs
parentf40ae73f2968e4b5343741839fe5af7b10f903a0 (diff)
downloaddotfiles-adcfe2752fa9a229953256c32c68f67d28f0aaf2.tar.lz
dotfiles-adcfe2752fa9a229953256c32c68f67d28f0aaf2.tar.zst
dotfiles-adcfe2752fa9a229953256c32c68f67d28f0aaf2.zip
Emacs: replace js3-mode with js2-mode
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 95363eb..0fafe5f 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