I installed this package https://github.com/emacs-languagetool/flycheck-languagetool to use languagetool with emacs. However, I am getting languagetool errors at my org documents' code blocks too. How would I disable flycheck to run spell checking at my code blocks?

1 Answer 1


This almost gives you the answer, which is:

(defun disable-fylcheck-in-org-src-block ()
  (setq-local flycheck-disabled-checkers '(languagetool)))
(add-hook 'org-src-mode-hook 'disable-fylcheck-in-org-src-block)
  • Almost… Description of org-src-mode-hook says: This hook will run: - when editing a source code snippet with ‘C-c '’ - when formatting a source code snippet for export with htmlize. However, I want to disable it in the org buffer. In my case flycheck already runs the correct linter/checker in the src-mode.
    – Barslmn
    Commented Jan 2, 2023 at 9:55

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.