Enable copilot when writing commit messages and suppress copilot warnings

This commit is contained in:
Jeremy Dormitzer 2024-04-01 14:34:22 -06:00
parent d578fcfaa7
commit 3ad9aaffef

View File

@ -236,7 +236,11 @@
:straight (:host github :repo "copilot-emacs/copilot.el" :files ("dist" "*.el")) :straight (:host github :repo "copilot-emacs/copilot.el" :files ("dist" "*.el"))
:hook ((prog-mode . copilot-mode) :hook ((prog-mode . copilot-mode)
(yaml-mode . copilot-mode) (yaml-mode . copilot-mode)
(json-mode . copilot-mode)) (json-mode . copilot-mode)
(forge-post-mode . copilot-mode)
(git-commit-mode . copilot-mode))
:config
(add-to-list 'warning-suppress-types '(copilot))
:general :general
(prog-mode-map "C-c <tab>" #'copilot-complete) (prog-mode-map "C-c <tab>" #'copilot-complete)
(copilot-completion-map "C-n" #'copilot-next-completion (copilot-completion-map "C-n" #'copilot-next-completion