diff --git a/init.el b/init.el index f706ad8..66f118b 100644 --- a/init.el +++ b/init.el @@ -86,8 +86,9 @@ PACKAGE is installed and the current version is deleted." ) (let ((default-directory (concat user-emacs-directory "site-lisp/"))) - (normal-top-level-add-to-load-path '(".")) - (normal-top-level-add-subdirs-to-load-path)) + (when (file-exists-p default-directory) + (normal-top-level-add-to-load-path '(".")) + (normal-top-level-add-subdirs-to-load-path))) (fset 'yes-or-no-p 'y-or-n-p) diff --git a/init.org b/init.org index 9e2c7c9..c63b13e 100644 --- a/init.org +++ b/init.org @@ -167,8 +167,9 @@ #+BEGIN_SRC emacs-lisp :tangle yes (let ((default-directory (concat user-emacs-directory "site-lisp/"))) - (normal-top-level-add-to-load-path '(".")) - (normal-top-level-add-subdirs-to-load-path)) + (when (file-exists-p default-directory) + (normal-top-level-add-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