Add :mindepth property to doom-files-in
+ don't error out if directory doesn't exist. + :depth now starts from 0, instead of 1
This commit is contained in:
parent
acbad5ca01
commit
399591b951
2 changed files with 36 additions and 30 deletions
|
@ -673,10 +673,10 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
|
|||
module. This does not include your byte-compiled, third party packages.'"
|
||||
(interactive)
|
||||
(cl-loop with default-directory = doom-emacs-dir
|
||||
for path in (append (doom-files-in doom-emacs-dir :match "\\.elc$" :depth 1)
|
||||
(doom-files-in doom-private-dir :match "\\.elc$" :depth 2)
|
||||
for path in (append (doom-files-in doom-emacs-dir :match "\\.elc$" :depth 0)
|
||||
(doom-files-in doom-private-dir :match "\\.elc$" :depth 1)
|
||||
(doom-files-in doom-core-dir :match "\\.elc$")
|
||||
(doom-files-in doom-modules-dirs :match "\\.elc$" :depth 4))
|
||||
(doom-files-in doom-modules-dirs :match "\\.elc$" :depth 3))
|
||||
for truepath = (file-truename path)
|
||||
if (file-exists-p path)
|
||||
do (delete-file path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue