Improve how reload-doom-autoloads detects your modules have changed

This commit is contained in:
Henrik Lissner 2018-05-25 18:25:43 +02:00
parent debdb63100
commit 06bd3dfccc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -119,6 +119,8 @@ modified."
(push file targets))))) (push file targets)))))
(if (and (not force-p) (if (and (not force-p)
(file-exists-p doom-autoload-file) (file-exists-p doom-autoload-file)
(not (file-newer-than-file-p (expand-file-name "init.el" doom-private-dir)
doom-autoload-file))
(not (cl-loop for file in targets (not (cl-loop for file in targets
if (file-newer-than-file-p file doom-autoload-file) if (file-newer-than-file-p file doom-autoload-file)
return t))) return t)))