diff --git a/emacs/.emacs.d/config/init-ide.el b/emacs/.emacs.d/config/init-ide.el index aff2d13..22d28a4 100644 --- a/emacs/.emacs.d/config/init-ide.el +++ b/emacs/.emacs.d/config/init-ide.el @@ -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 " #'copilot-complete) + (copilot-completion-map "C-n" #'copilot-next-completion + "C-p" #'copilot-previous-completion + "C-" #'copilot-accept-completion + "C-M-" #'copilot-accept-completion-by-word + "C-g" #'copilot-clear-overlay)) + ;; Debugger interface (use-package realgud :defer t)