commit 5eaaaef34f1ed4e9527246b3112942e7e20f37ab parent 5e60fd2baa24ef97da5aecfa03c1b22d1b36291e Author: Michael Neuper <michael@michaelneuper.com> Date: Thu, 28 Nov 2024 15:43:53 +0200 add config for copilot and copilot-chat Diffstat:
| M | config.org | | | 30 | ++++++++++++++++++++++++++---- |
1 file changed, 26 insertions(+), 4 deletions(-)
diff --git a/config.org b/config.org @@ -79,15 +79,37 @@ corfu-preselect 'first +corfu-want-tab-prefer-expand-snippets t)) #+end_src -*** copilot +*** other +**** copilot +Add keybindings for [[https:https://github.com/copilot-emacs/copilot.el][copilot]] and [[https://github.com/chep/copilot-chat.el][copilot-chat]] with [[kbd:][<leader> e]] prefix. #+begin_src emacs-lisp (after! (evil copilot) (evil-define-key 'insert 'global (kbd "<tab>") 'copilot-accept-completion)) (map! :leader - (:prefix "t" - :desc "Copilot" - "c" #'copilot-mode)) + (:prefix ("e" . "copilot") + :desc "Enable Copilot Mode" + "c" #'copilot-mode + :desc "Display Chat Window" + "d" #'copilot-chat-display + :desc "Explain Selected Code" + "e" #'copilot-chat-explain + :desc "Review Selected Code" + "r" #'copilot-chat-review + :desc "Fix Selected Code" + "f" #'copilot-chat-fix + :desc "Optimize Selected Code" + "o" #'copilot-chat-optimize + :desc "Write Test for Code" + "t" #'copilot-chat-test + :desc "Add Current Buffer" + "a" #'copilot-chat-add-current-buffer + :desc "Document Selected Code" + "D" #'copilot-chat-doc + :desc "Reset Chat History" + "R" #'copilot-chat-reset + :desc "Remove Current Buffer" + "x" #'copilot-chat-del-current-buffer)) #+end_src ** :ui *** doom-dashboard