Doom's `doom!' takes a single module list, so this file cannot be shared:
the two machines want different module sets (vertico + popup + workspaces
here, ivy + dashboard + doom-quit there), and the mac list still carries
pre-3.0 names that this Doom rejects. Instead of merging 143 lines of it,
each machine keeps its own copy:
linux/init.el from linux-adopt, verbatim (cmp: identical)
mac/init.el the previous root init.el, verbatim (cmp: identical)
The root init.el is now an *untracked* symlink into whichever directory
matches the machine, created by bin/link-machine.sh. It has to be
untracked: one branch is shared by both machines, and a tracked symlink can
only have one target. /init.el is gitignored so a stray link can never be
committed and clobber the other machine.
Verified:
- link resolves: file-truename init.el -> .../linux/init.el
- the file parses (check-parens) through the link
- sh -n clean; unknown-machine path exits 1 with a message
- git status clean apart from this commit (symlink is ignored)
On the mac, after pulling: ./bin/link-machine.sh && doom sync
Caveats, all consequences of the link being untracked:
- a fresh clone has no init.el until you run the script
- `git clean -xfd' deletes it; re-run the script
- Emacs' byte-compiler would write init.elc next to the link (repo root);
harmless here since *.elc is ignored and the target's mtime wins when
the .el has been edited
config.el and packages.el stay shared at the root for now: their content is
mostly common, and three-way merges are worth more there than isolation.
That is also why AGENTS.md, snippets/ and qwan/ stay where they are.
Move the firehose exporter here from the firehose repo scripts directory
and rename it to the org-roam- prefix so M-x org-roam-export-blog sits
with the other roam commands. Both commands share one pipeline; each
target contributes frontmatter, post path and image convention:
- org-roam-export-blog: firehose draft (Elixir frontmatter, images to
app/priv/static/images/blog), bound to SPC n r b
- org-roam-export-jekyll: jekyll draft in _drafts/ (YAML frontmatter,
tags from #+filetags:, images to attachments/blogposts), bound to
SPC n r j
Repo roots are defcustoms set home-relative in config.el so one value
works on macOS and Linux; unset or absent roots fail loudly. ERT tests
and the fixture vault live alongside; run with the emacs --batch
command in the test file commentary.
Also split per-machine config: config.el now loads config-mac.el only
on darwin and the new config-linux.el on GNU/Linux, and ignores stale
*.elc files that would otherwise shadow newer sources.
Move gptel backend configuration to config-local.el (gitignored) so each
machine can have its own LLM setup. Add config-local.example.el as a
template with options for Ollama, remote llama.cpp, and local llama.cpp.
Also make OS-specific paths portable:
- Use ~ instead of hardcoded /Users/willem for elixir-ls
- Wrap macOS TeX path in system-type conditional
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>