diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-09 15:33:33 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-09 15:33:33 +0200 |
commit | 9e78cd3ed48373106cd8a40709b0001480025954 (patch) | |
tree | 1a75f3062ad4d2ee96d35b5029f1c4cc26e59d4d /.config | |
parent | 3a01e963ad53890d65356d5c542a0973e57b9c8a (diff) |
emacs: Apply hook after eglot loads
Diffstat (limited to '.config')
-rw-r--r-- | .config/emacs/init.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index f3bab0b..452328d 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -340,7 +340,9 @@ list is flipped or not." :bind (:map company-active-map ("C-j" . #'x-company-next-candidate) ("C-k" . #'x-company-previous-candidate)) - :hook ((conf-mode prog-mode) . company-mode) + :init + (with-eval-after-load 'eglot + (add-hook 'eglot-managed-mode-hook #'company-mode)) :custom (company-minimum-prefix-length 1) (company-idle-delay (lambda () (unless (company-in-string-or-comment) 0))) |