Note · ongoing

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.

WhatDetail
BaseDoom Emacs
ShapeA literate config.org tangled to config.el on save
Org modules+journal, +pretty, +roam2
Agentsagent-shell over the Agent Client Protocol, the pi package, and gptel against a local model
ConfigPrivate, 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:

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:

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:

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:

WhenWhat changed
Jan 2024Initial import — the existing config, carried over wholesale from whatever came before
Aug 2025codium, dap-mode, undo-tree. The editor became a development environment: a debugger, a code editor, a safety net
Dec 2025LSP support added, treemacs adopted
May 2026General refresh
Nov 2026agent-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