diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2016-03-05 22:11:02 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-03-05 22:11:02 -0700 |
commit | 03553b00889021d53dd84670358c2395fe26696e (patch) | |
tree | 24672bad9f5bed99f92cfa89262a5813caf071ed | |
parent | a70cc66b7e97fcc84d00db1e51102e59fd6ba840 (diff) | |
download | dotfiles-03553b00889021d53dd84670358c2395fe26696e.tar.gz |
similarly, f.el, dash.el and s.el from /usr/share
-rw-r--r-- | .emacs.d/init.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 0514aa73..6f15537e 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -14,8 +14,11 @@ ;; load up f, and its dependencies s and dash, so we can use `f-glob' ;; and `f-join' -(dolist (pkg '("f.el" "dash.el" "s.el")) - (add-to-list 'load-path (concat emacs-pkg-dir "/" pkg))) +(dolist (pkg '(("f" . "f.el") + ("dash" . "dash.el") + ("s" . "s.el"))) + (unless (locate-library (car pkg)) + (add-to-list 'load-path (concat emacs-pkg-dir "/" (cdr pkg))))) (require 'f) (require 's) (require 'dash) ;; helper function |