Add copilot and gptel
This commit is contained in:
parent
5c37f99702
commit
655b40956b
14
config.el
14
config.el
@ -411,6 +411,20 @@
|
|||||||
:before #'server-edit
|
:before #'server-edit
|
||||||
(save-buffer))
|
(save-buffer))
|
||||||
|
|
||||||
|
(use-package! gptel
|
||||||
|
:config
|
||||||
|
(setq! gptel-api-key (lambda () (with-temp-buffer
|
||||||
|
(insert-file-contents "/run/secrets/chatgpt_api_key")
|
||||||
|
(buffer-string)))))
|
||||||
|
|
||||||
|
(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)))
|
||||||
|
|
||||||
;; load personal modules
|
;; load personal modules
|
||||||
(load! "org")
|
(load! "org")
|
||||||
(load! "gtd")
|
(load! "gtd")
|
||||||
|
@ -94,6 +94,6 @@
|
|||||||
:branch "main"
|
:branch "main"
|
||||||
:files (:defaults "bin")))
|
:files (:defaults "bin")))
|
||||||
|
|
||||||
;; https://github.com/doomemacs/doomemacs/issues/7196
|
(package! gptel)
|
||||||
;; (unpin! evil-collection)
|
(package! copilot
|
||||||
;; (package! evil-collection :recipe (:repo "emacs-evil/evil-collection" :branch "master"))
|
:recipe (:host github :repo "copilot-emacs/copilot.el" :files ("*.el" "dist")))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user