all repos — archive/dotfiles @ a4b690f924e3f064bf472f22368cabb1b2d54963

Superseded by nixfiles

Emacs: Configure js2-mode to work with node
Alan Pearce alan@alanpearce.co.uk
Wed, 06 May 2015 16:29:27 +0200
commit

a4b690f924e3f064bf472f22368cabb1b2d54963

parent

33c0e9699951140bddb9f408bd9a2a7b5deacf7f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -1391,7 +1391,7 @@ (autopair-mode -1)               (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