]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix bug#69809
authorEshel Yaron <me@eshelyaron.com>
Thu, 11 Jul 2024 09:50:03 +0000 (11:50 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 11 Jul 2024 11:24:02 +0000 (13:24 +0200)
lisp/progmodes/eglot.el

index a893a8d749a01c0ac96a17c3f725187445fc5802..6cd48917d472599fb88b697c6f5c0bd383a380d8 100644 (file)
@@ -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)