From: Eshel Yaron Date: Thu, 11 Jul 2024 09:50:03 +0000 (+0200) Subject: ; Fix bug#69809 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=02603a72d7d00105a6b37739cfac9073a2f15cd7;p=emacs.git ; Fix bug#69809 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index a893a8d749a..6cd48917d47 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -2040,7 +2040,8 @@ Use `eglot-managed-p' to determine if current buffer is managed.") (unless (eglot--stay-out-of-p 'imenu) (add-function :before-until (local 'imenu-create-index-function) #'eglot-imenu)) - (unless (eglot--stay-out-of-p 'flymake) (flymake-mode 1)) + (unless (eglot--stay-out-of-p 'flymake) + (if flymake-mode (flymake-start) (flymake-mode 1))) (unless (eglot--stay-out-of-p 'eldoc) (add-hook 'eldoc-documentation-functions #'eglot-hover-eldoc-function nil t)