Install copilot
This commit is contained in:
parent
40198c6a2a
commit
478b82c18f
3 changed files with 26 additions and 4 deletions
|
|
@ -7,8 +7,6 @@
|
|||
(customize-set-variable 'visible-bell 1)
|
||||
(customize-set-variable 'large-file-warning-threshold 100000000)
|
||||
|
||||
(add-to-list 'load-path (expand-file-name "utils/" user-emacs-directory))
|
||||
|
||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||
(load custom-file 'noerror)
|
||||
|
||||
|
|
@ -88,6 +86,28 @@
|
|||
:hook
|
||||
(completion-list-mode . consult-preview-at-point-mode))
|
||||
|
||||
(use-package copilot
|
||||
:load-path "packages/copilot"
|
||||
:bind ("M-C-<return>" . copilot-accept-completion)
|
||||
:commands (copilot-login global-copilot-mode)
|
||||
:config
|
||||
(use-package editorconfig)
|
||||
(use-package dash)
|
||||
(use-package s)
|
||||
|
||||
(defun to/copilot-disable-predicate ()
|
||||
(member major-mode '(shell-mode
|
||||
eshell-mode
|
||||
term-mode
|
||||
vterm-mode
|
||||
compilation-mode
|
||||
debugger-mode
|
||||
dired-mode-hook
|
||||
compilation-mode-hook
|
||||
minibuffer-mode-hook)))
|
||||
|
||||
(add-to-list 'copilot-disable-predicates #'to/copilot-disable-predicate))
|
||||
|
||||
(use-package corfu
|
||||
:custom
|
||||
(corfu-cycle t)
|
||||
|
|
@ -246,7 +266,6 @@
|
|||
:config
|
||||
(setq git-gutter:update-interval 0.02)
|
||||
(ef-themes-with-colors
|
||||
(message "colors ------------")
|
||||
(set-face-foreground 'git-gutter:modified yellow-warmer)
|
||||
(set-face-foreground 'git-gutter:added green-warmer)
|
||||
(set-face-foreground 'git-gutter:deleted red-warmer)))
|
||||
|
|
@ -392,4 +411,3 @@
|
|||
|
||||
(use-package vterm
|
||||
:if module-file-suffix)
|
||||
|
||||
|
|
|
|||
1
.emacs.d/packages/copilot
Submodule
1
.emacs.d/packages/copilot
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 7cb7beda89145ccb86a4324860584545ec016552
|
||||
Loading…
Add table
Add a link
Reference in a new issue