fix copilot keybinds

This commit is contained in:
janis 2026-07-27 01:18:42 +02:00
parent 13b38d3275
commit a476ecd820
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8

View file

@ -1434,12 +1434,16 @@ Use =inheritenv= and =envrc= to load ~.envrc~ direnv files:
:straight (:host github :repo "copilot-emacs/copilot.el" :files ("*.el"))
:ensure t
:hook ((prog-mode markdown-mode conf-toml-mode) . copilot-mode)
:bind (
:bind (("TAB" . 'copilot-accept-completion)
("M-<tab>" . 'copilot-accept-completion-by-word)
("C-<tab>" . 'copilot-accept-completion)
("C-M-<tab>" . 'copilot-accept-completion-by-line))
:bind (:map copilot-completion-map
("<tab>" . 'copilot-accept-completion)
("TAB" . 'copilot-accept-completion)
("C-<tab>" . 'copilot-accept-completion)
("M-<tab>" . 'copilot-accept-completion-by-word)
("C-S-<tab>" . 'copilot-accept-completion-by-line)
)
("C-M-<tab>" . 'copilot-accept-completion-by-line))
:config
(setq copilot-indent-offset-warning-disable t
copilot-max-char-warning-disable t)