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)))
+2 -2
View File
@@ -21,7 +21,7 @@
;;layout ; auie,ctsrnm is the superior home row
:completion
company ; the ultimate code completion backend
(company +childframe) ; the ultimate code completion backend
;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine...
;;ivy ; a search engine for love and life
@@ -91,7 +91,7 @@
;; debugger ; FIXME stepping through code, to help you add bugs
;;direnv
(docker +lsp)
;;editorconfig ; let someone else argue about tabs vs spaces
editorconfig ; let someone else argue about tabs vs spaces
;;ein ; tame Jupyter notebooks with emacs
(eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists
@@ -5,6 +5,8 @@
;; on the command line, then restart Emacs for the changes to take effect -- or
;; use 'M-x doom/reload'.
(package! copilot
:recipe (:host github :repo "copilot-emacs/copilot.el" :files ("*.el" "dist")))
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;; (package! some-package)