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

How to install and configure Emigo in your own Emacs environment?

2025-08-27 1.5 K
Link directMobile View
qrcode

Preparation for installation

  • Requires Emacs 28 or higher.
  • Requires a Python 3.x environment

Detailed installation steps

  1. Clone the repository to the Emacs configuration directory:
    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. Add the configuration to the Emacs configuration file (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:
    • Model Selection: Recommended Deepseek for OpenRouter
    • API address: generally the standard address of OpenRouter
    • API key: get it from OpenRouter and save it to the specified path
  5. Verify the installation: after saving and restarting Emacs, typeM-x emigoSee if a dedicated buffer appears

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