From 1c2c33fd8c8ef14982fe26643a5288cfe03fc65f Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 26 Jun 2022 22:24:03 +0200 Subject: [PATCH] [Emacs] Better copilot settings --- org/config/emacs.org | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/org/config/emacs.org b/org/config/emacs.org index b016324..cb83a79 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -5855,9 +5855,12 @@ to anything user-defined. Let’s all-the-iconify this! :repo "zerolfx/copilot.el" :files ("dist" "copilot.el") :build t) - :custom - (copilot-enable-predicates '(evil-insert-state-p)) :config + (csetq copilot-enable-predicates '(evil-insert-state-p) + copilot-node-executable + (expand-file-name ".local/share/nvm/versions/node/v17.9.1/bin/node" + (getenv "HOME"))) + (defun my/copilot-tab () (interactive) (or (copilot-accept-completion) @@ -5868,7 +5871,17 @@ to anything user-defined. Let’s all-the-iconify this! (phundrak/evil :packages '(copilot company) :keymaps '(company-mode-map company-active-map) - "TAB" #'my/copilot-tab))) + "TAB" #'my/copilot-tab)) + :general + (phundrak/major-leader-key + :packages 'copilot + "C" '(:ignore t :wk "Copilot") + "Cc" #'copilot-accept-completion + "CC" #'copilot-complete + "Cm" #'copilot-mode + "Cd" #'copilot-diagnose + "Cn" #'copilot-next-completion + "Cp" #'copilot-previous-completion)) #+end_src **** Flycheck