Commit 6a47b39d3143

Vincent Demeester <vincent@sbr.pm>
2025-02-18 09:56:04
tools/emacs: update copilot-chat keybindings
Updated keybindings for copilot-chat in Emacs configuration. Added new bindings for various copilot-chat functions such as inserting commit messages, optimizing, setting model, yanking, displaying, switching buffers, and custom prompts. This enhances the usability and accessibility of copilot-chat features. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 2f0d0d3
Changed files (1)
tools
tools/emacs/config/programming-config.el
@@ -229,9 +229,20 @@ Here is the result of `git diff --cached`:")
 
 (use-package copilot-chat
   :bind
-  (:map copilot-chat-prompt-mode-map
-        ("C-M-w" . my-copilot-chat-copy-source-block)
-        ("C-q" . delete-window))
+  (("C-c a p" . copilot-chat-prompt-transient-menu)
+   ("C-c a c" . copilot-chat-insert-commit-message)
+   ("C-c a o" . copilot-chat-optimize)
+   ("C-c a m" . copilot-chat-set-model)
+   ("C-c a w" . my-copilot-chat-copy-source-block)
+   ("C-c a y" . copilot-chat-yank)
+   ("C-c a Y" . copilot-chat-yank-pop)
+   ("C-c a b" . copilot-chat-display)
+   ("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 copilot-chat-prompt-mode-map
+         ("C-M-w" . my-copilot-chat-copy-source-block)
+         ("C-q" . delete-window)))
   :config
   (setq copilot-chat-prompts copilot-chat-markdown-prompt)
   (defun my-copilot-chat-copy-source-block ()