From 1e1ad3122a34bb90c96eec179ca6a3f0ae56ff14 Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Thu, 5 Nov 2026 10:43:54 +0000 Subject: [PATCH] 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). --- config.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.el b/config.el index 3eb0a27..56d8e6a 100644 --- a/config.el +++ b/config.el @@ -366,3 +366,12 @@ ;; Use aspell for spell checking (hunspell has no dictionaries installed) (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)) +