all repos — nixfiles @ e4300ae832559cf882db393e3ca9348ff9bf7864

System and user configuration, managed by nix and home-manager

Emacs: Auto-add node_modules bin folders to path

Alan Pearce
commit

e4300ae832559cf882db393e3ca9348ff9bf7864

parent

9934d6381e2b8fcf313f67986adae9de97e89fc8

1 file changed, 11 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -1999,6 +1999,17 @@ (add-hook 'js2-mode-hook #'js2-refactor-mode)
(js2r-add-keybindings-with-prefix "C-c C-m"))) #+END_SRC +**** add-node-modules-path + +Inside a javascript project, it's common to install tools locally to +the project. This will allows emacs to find their executables. + +#+BEGIN_SRC emacs-lisp +(use-package add-node-modules-path + :config (progn + (add-hook 'js2-mode-hook #'add-node-modules-path))) +#+END_SRC + **** jade (not pug) Javascript with an inferior node.js process and a debugger? Awesome.