インストールの準備
- 需要Emacs 28或更高版本
- 需要Python 3.x环境
詳細なインストール手順
- 克隆仓库到Emacs配置目录:
git clone https://github.com/MatthewZMD/emigo.git ~/.emacs.d/emigo
- Pythonの依存関係をインストールします:
cd ~/.emacs.d/emigo pip install -r requirements.txt
- 在Emacs配置文件(init.el)中添加配置:
(use-package emigo :straight (:host github :repo "MatthewZMD/emigo") :config (emigo-enable) :custom (emigo-model "openrouter/deepseek/deepseek-chat-v3-0324") (emigo-base-url "https://openrouter.ai/api/v1") (emigo-api-key (emigo-read-file-content "~/.config/openrouter/key.txt")))
- コンフィギュレーション・ノート
- 模型选择:推荐OpenRouter的Deepseek
- API地址:一般为OpenRouter的标准地址
- API密钥:从OpenRouter获取并保存到指定路径
- 验证安装:保存后重启Emacs,输入M-x emigo查看是否出现专用缓冲区
この答えは記事から得たものである。Emigo:EmacsのAIを使った複雑なプログラミング作業のアシスタントについて