How I use Doom Emacs
One org file, about 1,600 lines, tangled into a working config every time I save it. Org is the centre of the work. In 2026 the coding agents moved in too.
| What | Detail |
|---|---|
| Base | Doom Emacs |
| Shape | A literate config.org tangled to config.el on save |
| Org modules | +journal, +pretty, +roam2 |
| Agents | agent-shell over the Agent Client Protocol, the pi package, and gptel against a local model |
| Config | Private, and stays that way |
Why the config is a document, not a script
The config is not config.el. It is config.org — prose, headings, tables and code blocks, tangled into config.el by org-auto-tangle. Every module has a heading, and where the reasoning isn't obvious from the code, the reasoning is written above it in a sentence.
Two things fall out of that which a plain init file can't give you:
- A table of contents that is also a map of your habits. Scrolling the headings is a faster audit of "what is this editor actually for" than reading the code ever is.
- Explanations that survive. When you return to a setting eight months later, the reason you set it is in the file, above it, in your own words.
The friction is real — you are editing the source of a document that generates the thing that runs your editor. I added a small function bound to SPC i a that inserts the auto-tangle tag, because typing it by hand was the kind of friction that stops you writing a new section at all.
Org is the actual application
Emacs is the host; org-mode is what I use it for. The details that make it mine:
- Custom TODO keywords. Not just
TODO/DONE. There isBLOGfor writing,GYMfor the things that happen outside the chair,PROJfor anything with sub-tasks,VIDEOfor editing work, andWAITfor whatever is blocked on somebody else. A task vocabulary is a statement about what your week actually contains. - An agenda that hides what's finished. A custom view groups unfinished tasks by priority — three levels, colour-coded, with the high-priority block first. The default agenda tells you everything; this one tells you what's left.
- Capture that doesn't interrupt. Three templates: a todo, a note, a journal entry, each landing in its own file without visiting it. Capture is only useful if it's cheaper than the alternative, which is forgetting.
- Org lives in a synced folder. The org directory sits inside Nextcloud, so the same files open on the home machine and the office machine. This is the least glamorous decision in the whole config and the one I'd defend hardest.
- Roam for the things that aren't tasks. Notes that need to find each other later, rather than notes that need to be done.
I also wrote per-theme functions that set org headline colours and weights for a given colour scheme, because the default org faces are the only part of a theme that never quite matches. That's the level of pettiness this file operates at, and I'm at peace with it.
The agents moved in
This is the part of the config that didn't exist a few years ago, and it's now the first section in the file.
agent-shell is an Agent Client Protocol client for Emacs — it talks to any ACP agent, whether that's Pi, Gemini CLI, Claude Code or something else. Mine goes through the ACP adapter for Pi, and it authenticates with Pi's own config rather than holding credentials in the editor, which is the only version of this I was willing to write down.
What it gives you is a sidebar: an agent panel on the right at 30% width, locked, toggleable, and invisible to normal window switching until you ask for it. A leader prefix SPC l collects the whole vocabulary — start a shell, toggle the sidebar, insert a file into the conversation, send the region I'm looking at, reset the agent, or open the ACP logs when something is going wrong.
There is also a direct Pi package, whose most useful command by a distance is send the current flycheck errors to the agent. Not the file, not the region — the errors. That's the interface I actually want: the compiler already knows what's wrong, and now so does the thing that can fix it.
gptel handles the ordinary chat case against a local model on my own network, which keeps the throwaway questions off anyone's API bill.
The graveyard
The best thing about a literate config is that you can keep the tombstones. Several modules are still in the file, fully documented, with their code commented out and a note explaining what they were:
- Aider — deactivated, kept with its config so the shape of it survives.
- TabNine — deactivated. Autocomplete that lives somewhere else stopped being worth the integration.
- Neotree — inactive. A tree view of a project is a worse buffer list most of the time.
- Emojis — disabled, for reasons the file does not attempt to justify, and I respect that.
The rest of the file is the usual long tail of a config that has been carried between machines: a diff at the top of it for the agent, dired keybindings below that, a debugger configured for Rust and Python, ternaries everywhere between ivy and treemacs. A config is not a list of preferences. It's an archaeological record of everything you were once enthusiastic about.
The config's own history
Seven commits, January 2024 to November 2026. The shape of them tells you what happened to the editor:
| When | What changed |
|---|---|
| Jan 2024 | Initial import — the existing config, carried over wholesale from whatever came before |
| Aug 2025 | codium, dap-mode, undo-tree. The editor became a development environment: a debugger, a code editor, a safety net |
| Dec 2025 | LSP support added, treemacs adopted |
| May 2026 | General refresh |
| Nov 2026 | agent-shell moved to Pi, org-capture and treemacs set up properly |
The gap is the honest part. Eighteen months of nothing, then a debugger, then language servers, and only at the end — the agents. That isn't laziness, it's the sequence in which the job changed underneath the config. In 2024 the editor was where I read code. Now it's where I dispatch work.
It also means the file's history is a second document. The headings tell you what the editor is for today; the commits tell you what it was for when each section was written, and how long it took me to notice that had stopped being true.
What it costs
Literate config means two artefacts where most people have one, and a comment syntax that has to be got right or your editor silently fails to start the way you meant. Org means your notes are in a format that almost nothing else reads properly.
I've paid both, repeatedly. The return is an editor that has absorbed so much of the surrounding workflow — tasks, notes, journal, git, debugging, and now the agents — that switching away would mean giving up the connective tissue, not the editor.
The config itself stays private. ← Back to all work