fix(config): actually load config-local.el

The config comments (and config-local.example.el) promise that
machine-specific backends, secrets and paths live in config-local.el,
but nothing ever loaded it -- Doom does not auto-load it either, so any
settings written there were silently inert on both machines.

Load it at the very end of config.el, guarded by file-exists-p!, so a
missing file is a no-op and existing overrides beat the shared config
and the OS leaves.

Verified statically on the mac only (parens; no config-local.el exists
here yet, so behavior is unchanged until one is created).
This commit is contained in:
Willem van den Ende
2026-11-05 10:43:54 +00:00
parent 044e8145d5
commit 1e1ad3122a
+9
View File
@@ -366,3 +366,12 @@
;; Use aspell for spell checking (hunspell has no dictionaries installed) ;; Use aspell for spell checking (hunspell has no dictionaries installed)
(setq ispell-program-name "aspell") (setq ispell-program-name "aspell")
;; Local overrides, loaded last so they win over everything above: shared
;; config, the OS leaf, all of it. This file is gitignored; each machine can
;; keep secrets and machine-specific values there (API keys, backend hosts,
;; paths). See config-local.example.el for a template.
;; Historical note: until Nov 2025 nothing actually loaded this file, so any
;; settings written into it were silently inert.
(when (file-exists-p! "config-local.el" doom-user-dir)
(load! "config-local.el" doom-user-dir t))