Commit Graph
2 Commits
Author SHA1 Message Date
Willem van den Ende f687a18806 adopt: wire org-roam blog export; move its roots into the OS files
config.el        require org-roam-export-blog; SPC n r b / SPC n r j
  config-linux.el  firehose ~/dev/elixir/firehose, jekyll ~/Documents/...
  config-mac.el    firehose ~/dev/elixir/firehose, jekyll ~/MyDocuments/...

Upstream sets both roots in the shared config.el.  That does not survive the
trip: the jekyll checkout is ~/MyDocuments/qwan/sites/qwaneu.github.io on
macOS and ~/Documents/qwan/sites/qwaneu.github.io here (both verified to
exist).  So the roots go to the OS files and the shared half holds only the
require and the bindings.  Paths are home-relative, and config-local.el can
override them if a checkout ever moves.

Prefix SPC n r was unused in this config, so no rebinding.

Verified in a scratch checkout: the imported suite passes 20/20
(emacs -Q --batch -L qwan -l qwan/org-roam-export-blog.el
 -l qwan/org-roam-export-blog-test.el -f ert-run-tests-batch-and-exit)
and the existing firehose-blog suite still passes 16/16.
2026-11-03 12:25:56 +00:00
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