From 2cc96e219fc981b209558469ddfcf1e5fb4f3ed3 Mon Sep 17 00:00:00 2001 From: Amolith Date: Tue, 17 Jan 2023 17:39:28 -0500 Subject: [PATCH] add copilot to config --- dot_config/doom/config.org.tmpl | 11 +++++++++++ dot_config/doom/init.el | 2 +- dot_config/doom/packages.el | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/dot_config/doom/config.org.tmpl b/dot_config/doom/config.org.tmpl index 08818475cea6369e7710318fc1a890889f271b6b..164c491c719a72b00c886cb378e48170409ec5ee 100644 --- a/dot_config/doom/config.org.tmpl +++ b/dot_config/doom/config.org.tmpl @@ -333,3 +333,14 @@ Following established Doom conventions, bind ~SPC g p~ to #+BEGIN_SRC emacs-lisp (map! :leader :desc "Push upstream" "g p" #'magit-push-current-to-upstream) #+END_SRC + +* Copilot +#+BEGIN_SRC emacs-lisp +(use-package! copilot + :hook (prog-mode . copilot-mode) + :bind (("C-TAB" . 'copilot-accept-completion-by-word) + ("C-" . 'copilot-accept-completion-by-word) + :map copilot-completion-map + ("" . 'copilot-accept-completion) + ("TAB" . 'copilot-accept-completion))) +#+END_SRC diff --git a/dot_config/doom/init.el b/dot_config/doom/init.el index 54668c7d69018b67c90090bf023a55dc43524cc4..87aee55489f4b37ce5a7f7da2b4b88426dc485a2 100644 --- a/dot_config/doom/init.el +++ b/dot_config/doom/init.el @@ -20,7 +20,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 diff --git a/dot_config/doom/packages.el b/dot_config/doom/packages.el index 9afc9dbbbfe1d8e9494f098dd05042346116272a..9d756e8b76ed4964c0b0d941fc8bd1f621416c54 100644 --- a/dot_config/doom/packages.el +++ b/dot_config/doom/packages.el @@ -41,6 +41,9 @@ (package! org-ref :recipe (:host github :repo "jkitchin/org-ref")) +(package! copilot + :recipe (:host github :repo "zerolfx/copilot.el" :files ("*.el" "dist"))) + ;; If the package you are trying to install does not contain a PACKAGENAME.el ;; file, or is located in a subdirectory of the repo, you'll need to specify ;; `:files' in the `:recipe':