diff --git a/spacemacs.org b/spacemacs.org index d3a0129..577e4df 100644 --- a/spacemacs.org +++ b/spacemacs.org @@ -279,13 +279,19 @@ Autocompletion config for launch files. ;; disable inline previews (delq 'company-preview-if-just-one-frontend company-frontends)) + ;; Keybindings (with-eval-after-load 'copilot (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 "C-TAB") 'copilot-accept-completion-by-word) (define-key copilot-completion-map (kbd "C-") 'copilot-accept-completion-by-word)) + ;; Enable copilot mode in programming modes, markdown-mode and org-mode (add-hook 'prog-mode-hook 'copilot-mode) + (add-hook 'markdown-mode-hook 'copilot-mode) + (add-hook 'org-mode-hook 'copilot-mode) + + ;; Disable the warning message (add-hook 'copilot-mode-hook (lambda () (setq-local copilot--indent-warning-printed-p t))) #+END_SRC