Preparation for installation
- Requires Emacs 28 or higher.
- Requires a Python 3.x environment
Detailed installation steps
- Clone the repository to the Emacs configuration directory:
git clone https://github.com/MatthewZMD/emigo.git ~/.emacs.d/emigo
- Install Python dependencies:
cd ~/.emacs.d/emigo pip install -r requirements.txt
- 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")))
- 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
- Verify the installation: after saving and restarting Emacs, typeM-x emigoSee if a dedicated buffer appears
This answer comes from the articleEmigo: an assistant for complex programming tasks using AI in EmacsThe































