Skip to content

Instantly share code, notes, and snippets.

View plediii's full-sized avatar
👨‍🚀
computing

Paul Ledbetter plediii

👨‍🚀
computing
View GitHub Profile
@plediii
plediii / global.el
Created December 10, 2008 00:22 — forked from wfarr/global.el
(defun prepend-to-path (&rest paths)
(map 'nil (lambda (path)
(let ((old-paths (getenv "PATH")))
(if (and old-paths (not (equal old-paths "")))
(if (not (member path (split-string old-paths ":")))
(setenv "PATH" (concat path ":" old-paths)))
(setenv "PATH" path)))
(if (not (member path exec-path))
(setq exec-path (cons path exec-path))))
(reverse (prune-directory-list paths)))