summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-05-11 16:55:56 +0200
committerAlan Pearce2015-05-11 16:55:56 +0200
commit95b6c1dc702d55f4e5a86e134270e7efea7bda70 (patch)
treef0c08763233ca1f6c86b3b5b1c0ede3b3f68adf2
parentba072244ef31334ba07db9d4f646f8149a660fcc (diff)
downloaddotfiles-95b6c1dc702d55f4e5a86e134270e7efea7bda70.tar.lz
dotfiles-95b6c1dc702d55f4e5a86e134270e7efea7bda70.tar.zst
dotfiles-95b6c1dc702d55f4e5a86e134270e7efea7bda70.zip
Emacs: Use node externs in js2-mode
-rw-r--r--tag-emacs/emacs.d/init.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index cdb8500..f2cc3c3 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1395,7 +1395,7 @@ symbol, not word, as I need this for programming the most."
               (auto-indent-mode -1))
             (add-hook 'js2-mode-hook #'ap/javascript-setup)
             (setq js2-basic-offset 4
-                  js2-global-externs '("require" "module"))))
+                  js2-include-node-externs t)))
 
 (req-package tern
   :config (progn