From 9e78cd3ed48373106cd8a40709b0001480025954 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 9 Sep 2024 15:33:33 +0200 Subject: emacs: Apply hook after eglot loads --- .config/emacs/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.config/emacs/init.el') 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))) -- cgit v1.2.3