Created
January 7, 2017 16:16
-
-
Save DarrenN/e4a1ff2de4fb8d28cb09b48246135507 to your computer and use it in GitHub Desktop.
Dynamically add your Node.js bin path to exec-path in Spacemacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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