Fix 'doom compile' error when compiling templates

This commit is contained in:
Henrik Lissner 2019-12-20 05:01:44 -05:00
parent e0bd046339
commit 6d40f30a0a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,7 @@ and your private config files, respectively. To recompile your packages, use
(let ((filename (file-name-nondirectory path))) (let ((filename (file-name-nondirectory path)))
(or (string-prefix-p "." filename) (or (string-prefix-p "." filename)
(string-prefix-p "test-" filename) (string-prefix-p "test-" filename)
(string-suffix-p ".example.el" filename)
(not (equal (file-name-extension path) "el")) (not (equal (file-name-extension path) "el"))
(member filename (list "packages.el" "doctor.el"))))) (member filename (list "packages.el" "doctor.el")))))

View file

@ -51,11 +51,11 @@ DOOMDIR environment variable. e.g.
("config.el" . ("config.el" .
(lambda () (lambda ()
(insert-file-contents (insert-file-contents
(doom-path doom-core-dir "templates/config.el")))) (doom-path doom-core-dir "templates/config.example.el"))))
("packages.el" . ("packages.el" .
(lambda () (lambda ()
(insert-file-contents (insert-file-contents
(doom-path doom-core-dir "templates/packages.el"))))))) (doom-path doom-core-dir "templates/packages.example.el")))))))
;; In case no init.el was present the first time `doom-initialize-modules' was ;; In case no init.el was present the first time `doom-initialize-modules' was
;; called in core.el (e.g. on first install) ;; called in core.el (e.g. on first install)