Created
December 11, 2014 14:12
-
-
Save dakrone/e76d9727995b8a7911a2 to your computer and use it in GitHub Desktop.
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 add-to-path (path-element) | |
"Add the specified path element to the Emacs PATH" | |
(interactive "DEnter directory to be added to path: ") | |
(if (file-directory-p path-element) | |
(setenv "PATH" | |
(concat (expand-file-name path-element) | |
path-separator (getenv "PATH"))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment