From d370884f041c7e2a7df1399bd64016af6edab9cb Mon Sep 17 00:00:00 2001 From: Tobias Ostner Date: Fri, 2 Jan 2026 11:35:44 +0100 Subject: [PATCH] Modify copilot configuration --- flakes/emacs/config/init.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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