all repos — archive/dotfiles @ 95b6c1dc702d55f4e5a86e134270e7efea7bda70

Superseded by nixfiles

Emacs: Use node externs in js2-mode
Alan Pearce alan.pearce@spotcap.com
Mon, 11 May 2015 16:55:56 +0200
commit

95b6c1dc702d55f4e5a86e134270e7efea7bda70

parent

ba072244ef31334ba07db9d4f646f8149a660fcc

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

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