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 :hook
(completion-list-mode . consult-preview-at-point-mode)) (completion-list-mode . consult-preview-at-point-mode))
;; (use-package copilot (use-package copilot
;; :load-path "packages/copilot" :bind ("M-C-<return>" . copilot-accept-completion)
;; :bind ("M-C-<return>" . copilot-accept-completion) :commands (copilot-login global-copilot-mode)
;; :commands (copilot-login global-copilot-mode) :config
;; :config (use-package dash)
;; (use-package dash) (use-package editorconfig)
;; (use-package s) (use-package f)
;; (use-package editorconfig) (use-package s)
;; (use-package f)
;; (defun to/copilot-disable-predicate () (defun to/copilot-disable-predicate ()
;; (member major-mode '(shell-mode (member major-mode '(shell-mode
;; eshell-mode eshell-mode
;; term-mode term-mode
;; vterm-mode vterm-mode
;; compilation-mode compilation-mode
;; debugger-mode debugger-mode
;; dired-mode-hook dired-mode-hook
;; compilation-mode-hook compilation-mode-hook
;; minibuffer-mode-hook))) minibuffer-mode-hook)))
;; (add-to-list 'copilot-disable-predicates #'to/copilot-disable-predicate)) (add-to-list 'copilot-disable-predicates #'to/copilot-disable-predicate))
(use-package corfu (use-package corfu
:custom :custom

View file

@ -8,6 +8,7 @@
gnupg gnupg
jq jq
kubectl kubectl
nodejs_18
pass pass
ripgrep ripgrep
rnix-lsp rnix-lsp
@ -51,11 +52,14 @@
clojure-mode clojure-mode
consult consult
corfu corfu
dash
diff-hl diff-hl
dired-preview dired-preview
dockerfile-mode dockerfile-mode
editorconfig
ef-themes ef-themes
exec-path-from-shell exec-path-from-shell
f
flycheck flycheck
flycheck-clj-kondo flycheck-clj-kondo
flycheck-swiftlint flycheck-swiftlint
@ -84,6 +88,7 @@
rainbow-delimiters rainbow-delimiters
rainbow-mode rainbow-mode
restclient restclient
s
smartparens smartparens
so-long so-long
swift-mode swift-mode
@ -98,6 +103,22 @@
modus-themes modus-themes
nix-mode nix-mode
vertico 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; package = pkgs.emacs29;
}; };