Install copilot.el

This commit is contained in:
Tobias Ostner 2024-05-13 20:31:05 +02:00
parent 8e64cc68b3
commit 76894d4b58
2 changed files with 40 additions and 20 deletions

View file

@ -75,27 +75,26 @@
: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 dash)
;; (use-package s)
;; (use-package editorconfig)
;; (use-package f)
(use-package copilot
:bind ("M-C-<return>" . copilot-accept-completion)
:commands (copilot-login global-copilot-mode)
:config
(use-package dash)
(use-package editorconfig)
(use-package f)
(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))
(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

View file

@ -8,6 +8,7 @@
gnupg
jq
kubectl
nodejs_18
pass
ripgrep
rnix-lsp
@ -51,11 +52,14 @@
clojure-mode
consult
corfu
dash
diff-hl
dired-preview
dockerfile-mode
editorconfig
ef-themes
exec-path-from-shell
f
flycheck
flycheck-clj-kondo
flycheck-swiftlint
@ -84,6 +88,7 @@
rainbow-delimiters
rainbow-mode
restclient
s
smartparens
so-long
swift-mode
@ -98,6 +103,22 @@
modus-themes
nix-mode
vertico
(trivialBuild {
pname = "copilot.el";
version = "main-05-12-2024";
src = pkgs.fetchFromGitHub {
owner = "copilot-emacs";
repo = "copilot.el";
rev = "main";
hash = "sha256-Knp36PtgA73gtYO+W1clQfr570bKCxTFsGW3/iH86A0=";
};
buildInputs = [
epkgs.dash
epkgs.editorconfig
epkgs.s
epkgs.f
];
})
]);
package = pkgs.emacs29;
};