I'm looking to follow this other answer regarding linting inside org-mode source code block but I'm not able to figure out how to tell flymake to disable certain backends.

I'm using Emacs 27.x

1 Answer 1


See flymake-diagnostic-functions:

The functions in this hook diagnose problems in a buffer’s contents and provide information to the Flymake user interface about where and how to annotate problems diagnosed in a buffer.

Just remove function that you don't need like this:

(remove-hook 'flymake-diagnostic-functions 'flymake-function-that-you-dont-need)

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.