Commit ebd037b9 authored by marc0s's avatar marc0s

Add node_modules to path as js2-mode-hook

parent 43f3606c
......@@ -240,6 +240,7 @@ work here..."
(setq-default js2-strict-inconsistent-return-warning nil)
(setq-default js-switch-indent-offset 4)
(setq-default js2-global-externs '("module" "require" "assert" "setTimeout" "clearTimeout" "setInterval" "clearInterval" "location" "__dirname" "console" "JSON"))
(add-hook 'js2-mode-hook #'add-node-modules-path)
(add-hook 'js2-mode-hook #'marc0s/fix-js2-indent)
(add-hook 'js2-mode-hook #'marc0s/js2-flycheck)
(add-hook 'js2-mode-hook #'tern-mode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment