fix(cli): doom install: load $DOOMDIR/cli.el too

In case the user's put some configuration in cli.el that could be
relevant to eventual profile generation.
This commit is contained in:
Henrik Lissner 2024-09-04 15:00:37 -04:00
parent 1a5ff08da4
commit a940ac5614
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -81,8 +81,9 @@ Change `$DOOMDIR' with the `--doomdir' option, e.g.
. ,(file-name-with-extension (doom-path template-dir doom-module-packages-file)
".example.el")))))))
;; In case no init.el was present the first time it was loaded.
;; In case no init.el (or cli.el) was present before the config was deployed
(doom-load (doom-path doom-user-dir doom-module-init-file) t)
(doom-load (doom-path doom-user-dir "cli.el") t)
;; Ask if user would like an envvar file generated
(if (eq envfile? :no)