Skip to content

Commit 4510abe

Browse files
committed
feat: add keybinding for copilot.
1 parent 3fcffff commit 4510abe

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

content/index.org

+9-1
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,15 @@ We also add support for Copilot, which for certain languages is a good boilerpla
10161016

10171017
#+begin_src emacs-lisp
10181018
(use-package copilot
1019-
:straight (:host github :repo "copilot-emacs/copilot.el" :files ("*.el")))
1019+
:straight (
1020+
:host github
1021+
:repo "copilot-emacs/copilot.el"
1022+
:files ("*.el"))
1023+
:bind (:map copilot-completion-map
1024+
("<tab>" . 'copilot-accept-completion)
1025+
("TAB" . 'copilot-accept-completion)
1026+
("C-TAB" . 'copilot-accept-completion-by-word)
1027+
("C-<tab>" . 'copilot-accept-completion-by-word)))
10201028
#+end_src
10211029

10221030
* File browsing, terminal emulators, and web browsing

0 commit comments

Comments
 (0)