Fix 'doom compile' error when compiling templates
This commit is contained in:
parent
e0bd046339
commit
6d40f30a0a
4 changed files with 3 additions and 2 deletions
|
@ -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")))))
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue