diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2016-03-05 21:24:31 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-03-05 21:24:31 -0700 |
commit | a70cc66b7e97fcc84d00db1e51102e59fd6ba840 (patch) | |
tree | fa408ecdfe562b43b2d6ef9e5a16e2b86693be4a | |
parent | 77771b15fb097de4b546520acf4050d42f53859c (diff) | |
download | dotfiles-a70cc66b7e97fcc84d00db1e51102e59fd6ba840.tar.gz |
*append* ~/.emacs.d/pkg dirs to the loadpath
-rw-r--r-- | .emacs.d/init.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3479fa11..0514aa73 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -24,11 +24,20 @@ (apply 'nconc (mapcar do-glob globs)))) ;; now add all my pkg lisp directories + +;; As of Mar-16 we're appending rather than prepending to the +;; load-path so that any installed Debian ELPA packages take +;; precedence over those in `emacs-pkg-dir'. + +;; If I want some lisp in `emacs-pkg-dir' to take precedence over +;; system-wide lisp, I should create a file ~/.emacs.d/pkg/overrides +;; and have the following code prepend a directory to the load path if +;; it is listed in that file. (let* ((globs '("*" "*/lisp")) (dirs (expand-all-globs emacs-pkg-dir globs))) (dolist (dir dirs) (when (file-directory-p dir) - (add-to-list 'load-path dir)))) + (add-to-list 'load-path dir t)))) ;; finally put my own site-lisp at the front of `load-path' (add-to-list 'load-path (concat user-emacs-directory "site-lisp")) |