Skip to content

Commit

Permalink
Fix #42: Add subdirectories of site-lisp to load-path.
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Dec 16, 2018
1 parent cc5da8f commit 0cc6d6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 8 additions & 0 deletions init.el
Expand Up @@ -52,7 +52,15 @@
"Update `load-path'."
(push (expand-file-name "site-lisp" user-emacs-directory) load-path)
(push (expand-file-name "lisp" user-emacs-directory) load-path))

(defun add-subdirs-to-load-path (&rest _)
"Add subdirectories to `load-path'."
(let ((default-directory
(expand-file-name "site-lisp" user-emacs-directory)))
(normal-top-level-add-subdirs-to-load-path)))

(advice-add #'package-initialize :after #'update-load-path)
(advice-add #'package-initialize :after #'add-subdirs-to-load-path)

(update-load-path)

Expand Down
4 changes: 0 additions & 4 deletions site-lisp/subdirs.el

This file was deleted.

0 comments on commit 0cc6d6b

Please sign in to comment.