Prioritize site-lisp when loading libraries

This commit is contained in:
Lars Tveito 2015-04-22 00:08:49 +02:00
parent c573f247f1
commit 8186851085

View File

@ -288,8 +288,10 @@
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(let ((default-directory (concat user-emacs-directory "site-lisp/"))) (let ((default-directory (concat user-emacs-directory "site-lisp/")))
(when (file-exists-p default-directory) (when (file-exists-p default-directory)
(normal-top-level-add-to-load-path '(".")) (setq load-path
(normal-top-level-add-subdirs-to-load-path))) (append
(let ((load-path (copy-sequence load-path)))
(normal-top-level-add-subdirs-to-load-path)) load-path))))
#+END_SRC #+END_SRC
Answering /yes/ and /no/ to each question from Emacs can be tedious, a Answering /yes/ and /no/ to each question from Emacs can be tedious, a