Add copilot

This commit is contained in:
Jeremy Dormitzer 2024-03-25 14:27:45 -04:00
parent 1af6aa58d2
commit 9dfffe3654

View File

@ -230,6 +230,18 @@
:general
("C-c f" #'apheleia-format-buffer))
;; AI assistance
(use-package copilot
:straight (:host github :repo "copilot-emacs/copilot.el" :files ("dist" "*.el"))
:hook (prog-mode . copilot-mode)
:general
(prog-mode-map "C-c <tab>" #'copilot-complete)
(copilot-completion-map "C-n" #'copilot-next-completion
"C-p" #'copilot-previous-completion
"C-<tab>" #'copilot-accept-completion
"C-M-<tab>" #'copilot-accept-completion-by-word
"C-g" #'copilot-clear-overlay))
;; Debugger interface
(use-package realgud
:defer t)