インストールの準備
- 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:EmacsのAIを使った複雑なプログラミング作業のアシスタントについて































