From 3fd69b75c54bae055d17ceb756f4c6785fc9195c Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 27 Mar 2024 14:51:49 -0400 Subject: [PATCH] Add keybinding to accept one line of copilot completion --- emacs/.emacs.d/config/init-ide.el | 1 + emacs/.emacs.d/config/init-mac.el | 1 + 2 files changed, 2 insertions(+) diff --git a/emacs/.emacs.d/config/init-ide.el b/emacs/.emacs.d/config/init-ide.el index 1e69b14..aa76f2b 100644 --- a/emacs/.emacs.d/config/init-ide.el +++ b/emacs/.emacs.d/config/init-ide.el @@ -243,6 +243,7 @@ "C-p" #'copilot-previous-completion "C-" #'copilot-accept-completion "C-M-" #'copilot-accept-completion-by-word + "C-S-" #'copilot-accept-completion-by-line "C-g" #'copilot-clear-overlay)) ;; Debugger interface diff --git a/emacs/.emacs.d/config/init-mac.el b/emacs/.emacs.d/config/init-mac.el index 78c363e..c27eb7a 100644 --- a/emacs/.emacs.d/config/init-mac.el +++ b/emacs/.emacs.d/config/init-mac.el @@ -26,5 +26,6 @@ (add-hook 'after-init-hook #'theme-timer-hook) (unbind-key "C-" global-map) +(unbind-key "C-S-" global-map) (provide 'init-mac)