Setting up grammar check with Doom Emacs in Mac OS X
To turn it on, we update the init.el:
:checkers ;; ... grammar
Also it requires setting up java and Language Tools:
brew install java languagetool
However, the language tool didn't work out of box with the default Homebrew install. It complains:
LanguageTool exited abnormally with code 1 (The operation couldn t be completed. Unable to locate a Java Runtime.)
I have to manually update the
(setq langtool-java-bin "/usr/local/opt/openjdk/bin/java")
M-x langtool-check-buffer works!
Edits on 2022-03-05:
I wrote a new post about running language-tool check automatically.
If you are looking for writing style linting, check out my post about setting up vale prose linter.