AI code review · Self-paced workshop

Minimal Emacs setup

Practise understanding changes, checking AI findings, and making review decisions you can defend.

Workshop index · Download all examples and lessons

This workshop includes an isolated setup using built-in Diff mode, compilation, Org, and the Modus theme. It does not load or edit your normal configuration. You can keep using your existing Doom setup instead.

Install and check Emacs

If Emacs is already installed, check emacs --version and continue below. On macOS, Caleb’s dotfiles use the Emacs Plus app cask. With Homebrew already installed, the current Emacs Plus installation instructions give this path:

brew trust d12frosted/emacs-plus
brew tap d12frosted/emacs-plus
brew install --cask emacs-plus-app
emacs --version

The trust command approves that third-party tap; inspect the project before choosing it. On Linux or Windows, install a current GNU Emacs build using your platform’s package distribution, then verify the version. The exercise setup needs Emacs 28+; it does not require the macOS app or Doom.

Start the workshop

From the repository root, with Emacs 28 or later installed:

emacs -Q -l "$PWD/emacs/workshop.el"

The baseline setup needs no Emacs package downloads. Python or Node must be on the process PATH; starting from a terminal usually makes this easier to diagnose than launching from the desktop.

Verified on macOS with Emacs 31.1. Built-in-package smoke checks also run in batch. Emacs 28+ is the intended compatibility range, but other versions and operating systems have not been exercised here.

Match the screenshots

The screenshots use the same Catppuccin Mocha theme and JetBrains Mono 14-point font as Caleb’s Doom settings. If you already use that Doom configuration, no appearance change is needed. For the isolated setup:

# Point this at your installed catppuccin/emacs package checkout:
export WORKSHOP_CATPPUCCIN_DIR=/path/to/catppuccin/emacs
emacs -Q -l "$PWD/emacs/workshop.el" -l "$PWD/emacs/doom-theme.el"

The overlay’s default path matches Caleb’s existing Doom package checkout. Screenshot theme revision: 56c3cbe1fee8b04dd7331738df1a0b9bdc6f71bd from catppuccin/emacs. Install JetBrains Mono separately if you want the same font; neither the font nor theme is required to complete the exercises.

ActionBindingCommand
Open exercise diff and contractC-c rworkshop-review
Run a track’s testsC-c tworkshop-test
Open a review notebookC-c nworkshop-notes
Invoke any commandM-xexecute-extended-command
Move between windowsC-x oother-window
Cancel current commandC-gkeyboard-quit

These bindings apply to the isolated setup. The Doom configuration uses Evil and has different navigation bindings, documented in lesson 2. In both setups, use M-x plus the command name if a key behaves differently.

An AI account is optional: recorded examples support the full review process. To use a live assistant, supply the contract, baseline, and candidate paths, ask one scoped question, and verify its answer in Emacs. The minimal setup deliberately has no provider credentials or automatic agent execution.

Caleb’s extended setup

Reference revision: dotfiles at 2b974006.

The extended configuration enables Magit/Forge, pr-review, and claude-code-ide with Ghostel, plus custom PR navigation. See the reference init.el, packages.el, and config.el together: copying only a key binding does not install the command it invokes.

Use the isolated setup first if you are new to Emacs. The extended setup is a reference for an existing Doom installation, not a requirement for finishing the course.

If you specifically want Doom, follow its official installation guide, check its system prerequisites, and run doom doctor after installation. Keep your existing configuration backed up rather than replacing it with the dotfiles wholesale. The installed framework and Caleb’s user configuration are separate directories: ~/.config/emacs and ~/.config/doom respectively.