My personal Doom Emacs configuration.
.
├── config.el # Main configuration file
├── init.el # Doom modules selection
├── packages.el # Package declarations
└── modules/ # Custom modules
├── markdown-preview.el # Markdown preview with Mermaid support
└── claude.el # Claude Code integration
- AI-assisted development with Claude directly in Emacs
- IDE protocol support via Monet (selections, diagnostics, diffs)
- Terminal integration with eat backend
- Custom namespace:
SPC kfor custom apps,SPC k cfor Claude commands - Full transient menu with all Claude commands
Key bindings:
SPC k c- Open Claude command menu- Commands available: send region/buffer, fix errors, quick questions, etc.
SPC k m- Monet server managementSPC k m s- Start monet serverSPC k m k- Stop monet serverSPC k m l- List active sessions
Usage:
- Start monet server:
SPC k m s - In your terminal, run
claudeand use/idecommand to connect to Emacs - Select text in Emacs (visual mode
vor mouse highlight) - Claude can now see your selections, diagnostics, and show diffs
- Use
SPC k cto send commands to Claude from Emacs
- Dark theme preview with proper contrast
- Mermaid diagram support in markdown files
- Standalone Mermaid preview for
.mmdfiles - Live preview in Chrome (
SPC m p) - Uses Pandoc for markdown conversion
- Direct Mermaid.js rendering for
.mmdfiles
- X11 Primary Selection: Mouse highlight + middle-click paste
- Tree-sitter support for TypeScript/TSX
- Install Doom Emacs
- Clone this repo to
~/.config/doom:git clone https://github.com/svenna/doomemacs.git ~/.config/doom - Install dependencies:
# For markdown preview sudo apt install pandoc tidy # For Claude Code integration npm install -g @anthropic-ai/claude-code
- Sync Doom:
~/.config/emacs/bin/doom sync - Restart Emacs
For Markdown Preview:
- Pandoc (for markdown conversion)
- Google Chrome (for preview)
- tidy (for HTML validation)
For Claude Code:
- Claude Code CLI (
npm install -g @anthropic-ai/claude-code) - Emacs 30.0+ (for claude-code.el and monet)
Enabled Doom modules (see init.el):
- Completion: Corfu + Vertico
- UI: Treemacs, Doom modeline, VC-gutter
- Editor: Evil, Format on save, Snippets
- Tools: LSP, Magit, Tree-sitter
- Lang: Markdown (+grip), JavaScript, TypeScript, Python, Org, and more
This config is a work in progress. New features and tweaks are added as needed.
MIT