Only add site-lisp directory if it exists.

This commit is contained in:
Lars Tveito 2014-01-02 15:32:16 +01:00
parent 5477b1f7bc
commit 98dbd3303a
2 changed files with 6 additions and 4 deletions

View File

@ -86,8 +86,9 @@ PACKAGE is installed and the current version is deleted."
)
(let ((default-directory (concat user-emacs-directory "site-lisp/")))
(when (file-exists-p default-directory)
(normal-top-level-add-to-load-path '("."))
(normal-top-level-add-subdirs-to-load-path))
(normal-top-level-add-subdirs-to-load-path)))
(fset 'yes-or-no-p 'y-or-n-p)

View File

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