From 186ae249f65c0b4156947fc80229814bc4e87ac7 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 3 Dec 2024 10:24:07 +0000 Subject: [PATCH] Hook eglot-ensure to prog-mode --- system/home/emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/home/emacs/init.el b/system/home/emacs/init.el index dd2d57f4..4cfe27db 100644 --- a/system/home/emacs/init.el +++ b/system/home/emacs/init.el @@ -1100,7 +1100,8 @@ ("C-c c e" . eglot) ("C-c c a" . eglot-code-actions) ("C-c c r" . eglot-rename)) - :hook ((eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t)))) + :hook ((prog-mode . eglot-ensure) + (eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t)))) :custom (eglot-menu-string "lsp") (eglot-send-changes-idle-time 0.5)