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 'visible-bell 1)
|
||||||
(customize-set-variable 'large-file-warning-threshold 100000000)
|
(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))
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||||
(load custom-file 'noerror)
|
(load custom-file 'noerror)
|
||||||
|
|
||||||
|
|
@ -88,6 +86,28 @@
|
||||||
:hook
|
:hook
|
||||||
(completion-list-mode . consult-preview-at-point-mode))
|
(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
|
(use-package corfu
|
||||||
:custom
|
:custom
|
||||||
(corfu-cycle t)
|
(corfu-cycle t)
|
||||||
|
|
@ -246,7 +266,6 @@
|
||||||
:config
|
:config
|
||||||
(setq git-gutter:update-interval 0.02)
|
(setq git-gutter:update-interval 0.02)
|
||||||
(ef-themes-with-colors
|
(ef-themes-with-colors
|
||||||
(message "colors ------------")
|
|
||||||
(set-face-foreground 'git-gutter:modified yellow-warmer)
|
(set-face-foreground 'git-gutter:modified yellow-warmer)
|
||||||
(set-face-foreground 'git-gutter:added green-warmer)
|
(set-face-foreground 'git-gutter:added green-warmer)
|
||||||
(set-face-foreground 'git-gutter:deleted red-warmer)))
|
(set-face-foreground 'git-gutter:deleted red-warmer)))
|
||||||
|
|
@ -392,4 +411,3 @@
|
||||||
|
|
||||||
(use-package vterm
|
(use-package vterm
|
||||||
:if module-file-suffix)
|
:if module-file-suffix)
|
||||||
|
|
||||||
|
|
|
||||||
1
.emacs.d/packages/copilot
Submodule
1
.emacs.d/packages/copilot
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 7cb7beda89145ccb86a4324860584545ec016552
|
||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule ".emacs.d/packages/copilot"]
|
||||||
|
path = .emacs.d/packages/copilot
|
||||||
|
url = https://github.com/zerolfx/copilot.el
|
||||||
Loading…
Add table
Add a link
Reference in a new issue