Skip to content

Instantly share code, notes, and snippets.

@DarrenN
Created January 7, 2017 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DarrenN/e4a1ff2de4fb8d28cb09b48246135507 to your computer and use it in GitHub Desktop.
Save DarrenN/e4a1ff2de4fb8d28cb09b48246135507 to your computer and use it in GitHub Desktop.
Dynamically add your Node.js bin path to exec-path in Spacemacs
(defun dotspacemacs/user-init ()
;; Use whatever node is available
(setq node-path (mapconcat
'identity
(butlast (split-string (executable-find "node") "\\/")) "/"))
(add-to-list 'exec-path node-path t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment