summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-10-27 16:22:21 +0200
committerAlan Pearce2016-10-27 16:22:21 +0200
commit4ad23a478f7de66c7e322a9e5551f6f7da10993f (patch)
treee227b3c63cb6a423bf676634828e0d39cd392fbc
parentecad7cfbba68231a54afdee78e2f256c78519db4 (diff)
downloaddotfiles-4ad23a478f7de66c7e322a9e5551f6f7da10993f.tar.lz
dotfiles-4ad23a478f7de66c7e322a9e5551f6f7da10993f.tar.zst
dotfiles-4ad23a478f7de66c7e322a9e5551f6f7da10993f.zip
Emacs: Update js2-mode configuration
-rw-r--r--tag-emacs/emacs.d/init.org3
1 files changed, 1 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 821d5af..c01f63a 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -1843,7 +1843,6 @@ it though
 						 (fboundp #'do-it))
 				  (do-it name)))
 			  (advice-add 'imenu-add-to-menubar :around #'js2--imenu-around)
-			  (setq js2-skip-preprocessor-directives t)
 			  (defun ap/javascript-setup ()
 				(auto-indent-mode -1))
 			  (defun ap/js2-prev-error ()
@@ -1852,7 +1851,7 @@ it though
 			  (bind-key "M-g M-n" #'js2-next-error js2-mode-map)
 			  (bind-key "M-g M-p" #'ap/js2-prev-error js2-mode-map)
 			  (add-hook 'js2-mode-hook #'ap/javascript-setup)
-			  (setq js2-basic-offset 4
+			  (setq js2-basic-offset 2
 					js2-include-node-externs t)))
 #+END_SRC