Allow for doom site.d from env

This commit is contained in:
Niten 2021-08-06 11:26:54 -07:00
parent 6fdc2b5d0d
commit 0ab1532c85
1 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,9 @@
(setq exec-path (remove-duplicates (append (get-bash-path) exec-path) (setq exec-path (remove-duplicates (append (get-bash-path) exec-path)
:test #'equal)) :test #'equal))
(let ((site-dir (expand-file-name ".doom.d/site.d/"))) (let ((site-dir (if (getenv "DOOM_EMACS_SITE_PATH")
(getenv "DOOM_EMACS_SITE_PATH")
(expand-file-name ".doom.d/site.d/"))))
(let ((configs (filter (lambda (name) (let ((configs (filter (lambda (name)
(not (or (string-match "~$" name) (not (or (string-match "~$" name)
(string-match "^[.]" name)))) (string-match "^[.]" name))))