Commit Graph
1 Commits
Author SHA1 Message Date
Willem van den Ende a3b0c3d6e2 refactor: split shared config from OS-specific config
Introduces the seam that makes adopting upstream changes safe: config.el
holds what every machine shares, and a pcase on `system-type` at the end of
it loads exactly one OS file.  Leaves are loaded last on purpose, so they
can override shared settings such as `gptel-backend'.

  config-mac.el    seeded from mac repo 0789326 and now owned locally
  config-linux.el  new; Linux paths and binaries only
  config-local.el  per-machine, gitignored (template: config-local.example.el)

Nothing changes for the current machine.  The one line that moved -- the
eglot entry pointing elixir-ts-mode at /Users/willem/.elixir-ls/... -- was
already dead on Linux; it now lives in config-mac.el, and config-linux.el
picks `expert', any elixir-ls on PATH, or nothing at all, in that order.

Rationale: upstream already ships this exact layout (236c0e1 "refactor
config for multi-machine support"), so adopting it costs nothing and every
later upstream hunk then has an obvious correct home -- shared, mac, linux,
or not-committed.

Verified: parens/strings parse in all five .el files; `load!' arity checked
against doom-lib.el (filename &optional path noerror).
2026-11-03 12:25:12 +00:00