Skip to content

Instantly share code, notes, and snippets.

@ivey
Created December 1, 2008 22:04
Show Gist options
  • Save ivey/30866 to your computer and use it in GitHub Desktop.
Save ivey/30866 to your computer and use it in GitHub Desktop.
(defun add-vendor-directories ()
(interactive)
(mapc '(lambda (dir)
(if (and
(cadr dir)
(not (equal (car dir) "."))
(not (equal (car dir) "..")))
(add-to-list 'load-path (concat "~/.elisp/vendor/" (car dir)))))
(directory-files-and-attributes "~/.elisp/vendor")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment