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)