Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 20888dd4da
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (14 sloc) 0.465 kB
; for loading libraries in from the vendor directory
(defun vendor (library)
(let* ((file (symbol-name library))
(normal (concat "~/.emacs.d/vendor/" file))
(suffix (concat normal ".el")))
(cond
((file-directory-p normal)
(add-to-list 'load-path normal)
(require library))
((file-directory-p suffix)
(add-to-list 'load-path suffix)
(require library))
((file-exists-p suffix)
(require library)))))
Jump to Line
Something went wrong with that request. Please try again.