commit ad9f97a70fe854ce576bf865d857e781a09444df
parent 3f06e80b0dfbcefb7e2734f7f6816710f707a814
Author: Alex Balgavy <alex@balgavy.eu>
Date: Thu, 7 Jul 2022 23:25:50 +0200
emacs: add all subdirectories of custom lisp path to load-path
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/emacs/init.el b/emacs/init.el
@@ -47,6 +47,8 @@
(defconst za/manually-installed-package-dir (concat user-emacs-directory "lisp/") "The directory for packages (.lisp) that I manually install.")
(make-directory za/manually-installed-package-dir t)
(add-to-list 'load-path za/manually-installed-package-dir)
+(let ((default-directory za/manually-installed-package-dir))
+ (normal-top-level-add-subdirs-to-load-path))
;; Install and load use-package
(unless (package-installed-p 'use-package)