Just copy the site.d config

This commit is contained in:
peter.selby@bytedance.com 2023-11-10 09:51:21 -08:00
parent ff5d125f66
commit 7e5e35f66d
1 changed files with 10 additions and 9 deletions

View File

@ -160,16 +160,17 @@
(message "Skipping invalid file %s" full-file))))))
(let ((local-dir (if (getenv "DOOM_EMACS_LOCAL_PATH")
(getenv "DOOM_EMACS_LOCAL_PATH")
(expand-file-name ".local/emacs" (getenv "HOME")))))
(let ((configs (filter (lambda (name) (not (or (string-match "~$" name)
(string-match "^[.]" name)))
(directory-files local-dir)))))
(dolist (config configs)
(let ((full-file (expand-file-name file site-dir)))
(getenv "DOOM_EMACS_LOCAL_PATH")
(expand-file-name ".local/emacs.d/" (getenv "HOME")))))
(let ((configs (filter (lambda (name)
(not (or (string-match "~$" name)
(string-match "^[.]" name))))
(directory-files local-dir))))
(dolist (file configs)
(let ((full-file (expand-file-name file local-dir)))
(if (or (file-regular-p full-file) (file-symlink-p full-file))
(progn (message "Loading file %s" full-file)
(load full-file))
(progn (message "Loading file %s" full-file)
(load full-file))
(message "Skipping invalid file %s" full-file))))))
(provide 'config)