Claude Code editor integration
claude-code-emacs
Emacs package for running Claude Code sessions inside the editor.
Install
npm install -g claude-code-mcp-servergit clone https://github.com/yuya373/claude-code-emacs.gitFrom 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),ā¦
Details
- Repository
- yuya373/claude-code-emacs
- 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
Speckit Companion
102alfredoperez/speckit-companion
VS Code extension for spec-driven development ā manage specs, workflows, and steering docs for AI CLI tools (Claude Code, Gemini CLI, Copilot CLI)
Linggen Memory
111linggen/linggen-memory
Local-first semantic memory for AI assistants ā one store your preferences, decisions and gotchas follow you into, across Claude Code, Codex, Cursor and Zed.
code-bridge.nvim
67samir-roy/code-bridge.nvim
Neovim plugin for chatting with Claude Code from the editor.
Facadecode
147y5ez3g/facadecode
One IDE for you and your AI team. A VS Code fork where Claude Code, Codex, Antigravity, and Muse Code work in parallel across multiple projects and features.
Code Insights
79melagiri/code-insights
Turn your AI coding sessions into knowledge.
Iac Spec Kit
91IBM/iac-spec-kit
AI-assisted workflows for translating business requirements into infrastructure code
Browse the most popular Claude Code mods, all editor integrations, or the skills and MCP server directories.