[Emacs] Add Github Copilot package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lucien Cartier-Tilet 2022-04-18 21:17:31 +02:00
parent f6d7485531
commit e7b85d56d4
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -5791,7 +5791,7 @@ to anything user-defined. Lets all-the-iconify this!
"u" #'org-tree-slide-content)) "u" #'org-tree-slide-content))
#+end_src #+end_src
** Programming languages ** Programming
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Programming-languages6et5fl6184j0 :CUSTOM_ID: Packages-Configuration-Programming-languages6et5fl6184j0
:END: :END:
@ -5799,6 +5799,34 @@ to anything user-defined. Lets all-the-iconify this!
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Programming-languages-Tools-w3q5rsg0k4j0 :CUSTOM_ID: Packages-Configuration-Programming-languages-Tools-w3q5rsg0k4j0
:END: :END:
**** Copilot
:PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Programming-Tools-Copilot-ik2ddc804fj0
:END:
#+begin_src emacs-lisp
(use-package copilot
:defer t
:straight (copilot :type git
:host github
:repo "zerolfx/copilot.el"
:files ("dist" "copilot.el")
:build t)
:custom
(copilot-enable-predicates '(evil-insert-state-p))
:config
(defun my/copilot-tab ()
(interactive)
(or (copilot-accept-completion)
(company-indent-or-complete-common nil)))
(with-eval-after-load 'company
(delq 'company-preview-if-just-one-frontend company-frontends)
(phundrak/evil
:packages '(copilot company)
:keymaps '(company-mode-map company-active-map)
"TAB" #'my/copilot-tab)))
#+end_src
**** Flycheck **** Flycheck
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Programming-languages-Flycheckb446fl6184j0 :CUSTOM_ID: Packages-Configuration-Programming-languages-Flycheckb446fl6184j0