feat: emacs - copilot & docs

This commit is contained in:
Ryan Yin
2024-01-02 23:50:36 +08:00
parent bed0d1acdc
commit 26e5a3d12e
4 changed files with 88 additions and 2 deletions
@@ -74,3 +74,12 @@
;;
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
;; accept completion from copilot and fallback to company
(use-package! copilot
:hook (prog-mode . copilot-mode)
:bind (:map copilot-completion-map
("<tab>" . 'copilot-accept-completion)
("TAB" . 'copilot-accept-completion)
("C-TAB" . 'copilot-accept-completion-by-word)
("C-<tab>" . 'copilot-accept-completion-by-word)))