summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.el
diff options
context:
space:
mode:
authorAlan Pearce2015-05-06 16:29:27 +0200
committerAlan Pearce2015-05-06 16:29:27 +0200
commita4b690f924e3f064bf472f22368cabb1b2d54963 (patch)
tree28744c91013ee3d20898e9e6042609c808f02f75 /tag-emacs/emacs.d/init.el
parent33c0e9699951140bddb9f408bd9a2a7b5deacf7f (diff)
downloaddotfiles-a4b690f924e3f064bf472f22368cabb1b2d54963.tar.lz
dotfiles-a4b690f924e3f064bf472f22368cabb1b2d54963.tar.zst
dotfiles-a4b690f924e3f064bf472f22368cabb1b2d54963.zip
Emacs: Configure js2-mode to work with node
Diffstat (limited to 'tag-emacs/emacs.d/init.el')
-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 271c257..aa1876f 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1391,7 +1391,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 '("$"))))
+                  js2-global-externs '("require" "module"))))
 
 (req-package tern
   :config (progn