summary refs log tree commit diff stats
path: root/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/init.el')
-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