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.