diff --git a/flakes/emacs/config/init.el b/flakes/emacs/config/init.el index ff57e5c..4fd3015 100644 --- a/flakes/emacs/config/init.el +++ b/flakes/emacs/config/init.el @@ -68,12 +68,14 @@ (use-package copilot :hook (prog-mode . copilot-mode) - :bind (("M-C-" . copilot-accept-completion) - ("C-" . copilot-accept-completion-by-word)) + :bind (("C-" . copilot-accept-completion) + ("M-C-" . copilot-accept-completion-by-word) + ("C-n" . copilot-next-completion) + ("C-p" . copilot-previous-completion)) :commands (copilot-login) + :custom (copilot-indent-offset-warning-disable t) :config - (setq copilot-indent-offset-warning-disable t - copilot-max-char -1) + (add-to-list 'copilot-indentation-alist '(prog-mode 2)) (defun to/copilot-disable-predicate () (member major-mode '(shell-mode eshell-mode