Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

如何在自己的Emacs环境中安装和配置Emigo?

2025-08-27 1.2 K

Preparation for installation

  • 需要Emacs 28或更高版本
  • 需要Python 3.x环境

Detailed installation steps

  1. 克隆仓库到Emacs配置目录:
    git clone https://github.com/MatthewZMD/emigo.git ~/.emacs.d/emigo
  2. Install Python dependencies:
    cd ~/.emacs.d/emigo
    pip install -r requirements.txt
  3. 在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")))
  4. Configuration Notes:
    • 模型选择:推荐OpenRouter的Deepseek
    • API地址:一般为OpenRouter的标准地址
    • API密钥:从OpenRouter获取并保存到指定路径
  5. 验证安装:保存后重启Emacs,输入M-x emigo查看是否出现专用缓冲区

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish