From ae674da7d27605b7021d663107032f97e2afe9dd Mon Sep 17 00:00:00 2001 From: "m.fries" Date: Thu, 3 Aug 2023 09:09:18 +0200 Subject: [PATCH] Add GitHub copilot --- README.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.org b/README.org index 5aef3d2..c7674e2 100644 --- a/README.org +++ b/README.org @@ -506,6 +506,18 @@ Ag.el allows you to search using ~ag~ from inside Emacs. You can filter by file (add-hook 'prog-mode-hook 'display-line-numbers-mode) #+END_SRC +** Copilot +#+begin_src emacs-lisp + (use-package copilot + :straight (:host github :repo "zerolfx/copilot.el" :files ("dist" "*.el")) + :ensure t) + + (add-hook 'prog-mode-hook 'copilot-mode) + (define-key copilot-completion-map (kbd "") 'copilot-accept-completion) + (define-key copilot-completion-map (kbd "TAB") 'copilot-accept-completion) + (define-key copilot-completion-map (kbd "M--") 'copilot-complete) +#+end_src + ** Elisp Some customization for writing elisp #+BEGIN_SRC emacs-lisp