dev: replace .doomrc w/ .doom.el

Also replaces the project's .doomrc file with a .doom (which isn't used
or recognized just yet, but will be later).
This commit is contained in:
Henrik Lissner
2025-06-30 12:34:53 +02:00
parent fdc0fa3bec
commit 1adc318cac
4 changed files with 102 additions and 60 deletions

View File

@ -298,13 +298,13 @@ SEE ALSO:
(defcli-group! :prefix (if (cdr key) (format "+%s" (cdr key)))
(doom-load (file-name-sans-extension path))))))))
;; Allow per-project Doom settings in .doom files.
;; Execute arbitrary CLI configuration in a local .doom.el file
(let (doomrc)
(cond
((setq doomrc (getenv "DOOMRC"))
(load! doomrc default-directory))
((setq doomrc (locate-dominating-file default-directory ".doomrc"))
(load! ".doomrc" doomrc)))))
((setq doomrc (locate-dominating-file default-directory ".doom.el"))
(load! ".doom.el" doomrc)))))
;;