Claude Code editor integration

claude-code-emacs

Emacs package for running Claude Code sessions inside the editor.

Install

Install
npm install -g claude-code-mcp-server
From source
git clone https://github.com/yuya373/claude-code-emacs.git

From the README

Claude Code Emacs

Run Claude Code AI coding sessions directly in Emacs with powerful MCP integration.

Quick Start

Now run M-x claude-code-run to start a session!

Key Features

šŸš€ Core Features
- Project-isolated sessions - Each project gets its own Claude Code buffer
- Smart file completion - Type @ in prompts to reference project files
- Transient menus - Press C-c c for the main menu with all commands
- Custom commands - Define reusable commands in .claude/commands/*.md
- Project prompts - .claude-code.prompt.md file per project for persistent context

šŸ”Œ MCP Integration
Claude Code can directly interact with your Emacs environment:
- Buffer operations - List/read open buffers, get selected text
- LSP integration - Get diagnostics, find definitions/references, describe symbols
- Diff tools - Compare files, view git changes, apply patches
- Real-time events - Buffer changes and diagnostics sent to Claude Code automatically
- Automatic reconnection - If Emacs restarts, running sessions (including background agents) re-register themselves and reconnect automatically

āŒØļø Key Bindings

Global

In Claude Code Session (vterm mode)

In Agent View Mode (claude-code-vterm-agent-mode)

A minor mode for operating the Claude Code agents view.
Press C-c C-a in a Claude Code session to send Left (which opens the
agents view) and enable this mode.

The mode stays deliberately minimal so its keymap is free for user
extensions. Everything not listed below passes through to the
terminal: typing reaches the agents view's text input, and the TUI's
own control keys (C-r rename, C-s switch view, C-t pin, arrows,
RET, ESC) work as in a plain vterm.

The transient menu bundles all agents view operations: select
(n/p), rename via minibuffer (r), pin to top (t), stop with
confirmation (k),…
Read the full README on GitHub

Details

Language
Emacs Lisp
License
GPL-3.0
Last updated
24 September 2026
Topics
claudeclaude-codeemacsmcpmcp-server

FAQ

What is claude-code-emacs?

Emacs package for running Claude Code sessions inside the editor. It is a editor integration for Claude Code, from yuya373/claude-code-emacs on GitHub.

How do I install claude-code-emacs?

Run npm install -g claude-code-mcp-server, then follow the setup in the README.

Is claude-code-emacs popular?

yuya373/claude-code-emacs has 67 GitHub stars and 7 forks. It was last updated on 24 September 2026.

More editor integrations

Browse the most popular Claude Code mods, all editor integrations, or the skills and MCP server directories.