I'm too stupid for hooks

This commit is contained in:
Andreas Zweili 2023-12-13 18:20:58 +01:00
parent 6e824312e0
commit ab3ff987bb
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@
(use-package copilot
:load-path "~/.nixos/home-manager/modules/programs/emacs/emacs.d/lib/copilot"
:hook (prog-mode-hook . copilot-mode)
:config
(add-hook 'prog-mode-hook 'copilot-mode)
(add-hook 'yaml-mode-hook 'copilot-mode)
(define-key copilot-completion-map (kbd "<tab>") 'copilot-accept-completion)
(define-key copilot-completion-map (kbd "TAB") 'copilot-accept-completion))