Commit a49b1f3f0904

Vincent Demeester <vincent@sbr.pm>
2025-02-18 17:08:02
tools/emacs: bind some copilot-chat commands to embark
1 parent e66913c
Changed files (1)
tools
tools/emacs/config/programming-config.el
@@ -240,6 +240,12 @@ Here is the result of `git diff --cached`:")
    ("C-c a a" . copilot-chat-switch-to-buffer)
    ("C-c a f" . copilot-chat-custom-prompt-function)
    ("C-c a s" . copilot-chat-custom-prompt-selection)
+   (:map embark-general-map
+	 ("M a d" . copilot-chat-doc)
+	 ("M a e" . copilot-chat-explain)
+	 ("M a o" . copilot-chat-optimize)
+	 ("M a p" . copilot-chat-custom-prompt-selection)
+	 ("M a r" . copilot-chat-review))
    (:map copilot-chat-prompt-mode-map
          ("C-M-w" . my-copilot-chat-copy-source-block)
          ("C-q" . delete-window)))