From c5c459f58483f2bf8646afbc18864fec18ffa39d Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Sat, 14 Nov 2026 14:33:32 +0000 Subject: [PATCH] docs(agents): make the module-list check version-exact `init.*.el` matches stale generated startup files (init.28.el, init.30.el, init.30.1.el) that still carry a full doom-modules table, so the previous check could report success while the file for the running Emacs was the empty one. Name the file via `emacs-version` instead. --- agent-start-here.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/agent-start-here.md b/agent-start-here.md index 64285aa..4a78c35 100644 --- a/agent-start-here.md +++ b/agent-start-here.md @@ -42,9 +42,17 @@ checks; the `alist-get`/`setf` pattern unit-tested in vanilla Emacs 30.2. don't load, and every setting after the failing form in `config.el` silently stops working. `doom doctor` still looks healthy apart from that one error. Always `./bin/link-machine.sh` first, then `doom sync`. - To check: `grep -l '(:lang . org)' ~/.emacs.d/.local/etc/@/init.*.el` - must list the file for your Emacs version. This is what broke org-roam - on 2026-11-05 and again on 2026-11-14. + + Check it — and name the file for the *running* Emacs version, because the + other `init.*.el` files there are stale leftovers from older Emacsen and + match even when the current one is empty: + + ```sh + grep -l '(:lang . org)' \ + ~/.emacs.d/.local/etc/@/init.$(emacs --batch --eval '(princ emacs-version)' 2>/dev/null).el + ``` + + This is what broke org-roam on 2026-11-05 and again on 2026-11-14. - Never commit `init.el`, `custom.el`, `config-local.el`, or `*.elc`. - `config.el` and `packages.el` are shared by both machines. Prefer `config-mac.el` / `config-linux.el` for machine-specific work.