How can I disable any sort of on-the-fly diagnostics in eglot?

This does not seem to be possible by customizing eglot-ignored-server-capabilites. Disabling flymake-mode using a major-mode-hook also does not work.

2 Answers 2


Disabling flymake-mode on eglot-managed-mode-hook should work.

  • 6
    Welcome to Emacs.SE! Could you post the actual code to make this a complete answer?
    – Dan
    Commented Dec 24, 2020 at 16:21

I ended with the same situation, Where I wanted to use flymake directly with eslit wihout eglot. This code worked for me

  (add-hook 'eglot-managed-mode-hook (lambda ()
                   (remove-hook 'flymake-diagnostic-functions 'eglot-flymake-backend)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.