;;; lisp/langs/copilot.el --- GitHub Copilot -*- lexical-binding: t -*- ;; copilot.el is not on MELPA; installed via package-vc (Emacs 29+) (use-package copilot :vc (:url "https://github.com/copilot-emacs/copilot.el" :rev :newest) :hook (prog-mode . copilot-mode) :bind (:map copilot-completion-map ;; copilot-completion-map is only active when ghost text is showing, ;; so these bindings don't interfere with Corfu's popup ("" . copilot-accept-completion) ("TAB" . copilot-accept-completion) ("M-f" . copilot-accept-completion-by-word) ("M-n" . copilot-next-completion) ("M-p" . copilot-previous-completion)) :custom (copilot-idle-delay 0.5))