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.
This commit is contained in:
+11
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user