Created
October 14, 2012 05:17
-
-
Save jakemcc/3887459 to your computer and use it in GitHub Desktop.
Set your emacs path from your shell's $PATH
This file contains 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 set-exec-path-from-shell-PATH () | |
(let ((path-from-shell (shell-command-to-string "$SHELL -i -c 'echo $PATH'"))) | |
(setenv "PATH" path-from-shell) | |
(setq exec-path (split-string path-from-shell path-separator)))) | |
(if window-system (set-exec-path-from-shell-PATH)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment