
aidermacs
在 Emacs 里用 Aider 结对编程,AI 改码不切屏
项目预览
项目数据
项目介绍
Star 增长趋势
本站每日记录该项目 GitHub 星标变化,观测越久曲线越完整
数据来源:GitHub API 逐日快照 · 收录于 2026-08-09 · 当前星标 ★ 934
使用教程
ℹ 本教程由 AI 依据该项目 README 整理,个别步骤可能需要按你的环境微调。
环境要求
- Emacs 27+
- Aider(pip install aider-chat)
- 模型 API Key
安装与启动步骤
-
1装 Emacs 包
从 MELPA 装 aidermacs,或用 straight/quelpa 走仓库源。
M-x package-install RET aidermacs -
2配 Aider 与模型
设置 aidermacs-program 指向 aider 可执行文件,并配好 API Key。
-
3绑定快捷键
按 README 把 AI!、AI? 等命令绑到习惯的键位上。
-
4在 buffer 里用
光标停在代码处按 AI! 让 aider 直接改;AI? 则只提问不改文件。
如何确认成功
按 AI! 后 aider 会话在 Emacs 内启动并返回改动,buffer 内容被更新。
注意事项
- aider 需要在本机可执行路径里,路径不对时 Emacs 会静默失败,建议先 M-x 手动跑一次确认。
核心亮点
- 深度集成 Emacs,支持 Magit 和 Transient,操作流畅
- 支持多种 LLM 后端,灵活切换模型
- 提供差异预览和自动应用补丁,代码审查更安全
不足之处
- 依赖外部 Aider 工具,需额外安装配置
- 文档/社区待观察
适用场景
- Emacs 用户日常 AI 辅助编程
- 需要快速重构或生成代码时
- 在 Emacs 中管理多个 AI 会话
替代项目
gptel、llm.el、copilot-chat.el
同类项目推荐
klaatcode
开源
终端里用最便宜的模型干最合适的活,成本直降10倍
Open-source AI coding agent for the terminal. Claude Code-grade accuracy with smart ···
copilot-chat.vim
开源
在 Vim 里直接和 Copilot 聊天,写代码不切窗口
Copilot Chat for Vim
llm-vscode
开源
在 VSCode 里直接让大模型补全、解释和改代码
LLM powered development for VSCode
Empryo
开源
编辑代码符号而非字符串,让 AI 改代码更精准
AI coding harness for desktop, terminal and CI. Maps your repo, edits code by symbol···
myrlin-workbook
开源
一个浏览器管住所有 AI 编码会话,还能手机看
Open-source workspace manager for AI coding CLIs: Claude Code and ChatGPT Codex in o···
ai-dev-kit
开源
让 AI 编程助手真正会写 Databricks 代码
Databricks Toolkit for Coding Agents provided by Field Engineering
dryforge
开源
用AI插件把线束工程从手工变自动,效率翻倍
Bounded-autonomy plugin harness for agents. Intent to implementation: ready, then go···
llmdoc
开源
给编码 Agent 自动生成项目文档,少猜代码多干活
TokenRoll LLMDoc for Coding Agent
ai-codex
开源
给 AI 瘦身代码库,一次对话省 5 万 token
Generate a compact codebase index for AI assistants — saves 50K+ tokens per convers···