<p>Doom Emacs supports <a href="https://github.com/hlissner/doom-emacs/tree/develop/modules/checkers/grammar">grammar check</a> with <a href="https://github.com/mhayashi1120/Emacs-langtool">Language Tools</a> and <a href="https://github.com/bnbeckwith/writegood-mode">writegood-mode.</a></p> <p>To turn it on, we update the init.el:</p> <div class="language-elisp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="ss">:checkers</span> <span class="c1">;; ...</span> <span class="nv">grammar</span> </code></pre></div></div> <p>Also it requires setting up java and Language Tools:</p> <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>brew <span class="nb">install </span>java languagetool </code></pre></div></div> <p>However, the language tool didn't work out of box with the default Homebrew install. It complains:</p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>LanguageTool exited abnormally with code 1 (The operation couldn t be completed. Unable to locate a Java Runtime.) </code></pre></div></div> <p>I have to manually update the <code class="language-plaintext highlighter-rouge">java</code> executable:</p> <div class="language-elisp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">(</span><span class="k">setq</span> <span class="nv">langtool-java-bin</span> <span class="s">"/usr/local/opt/openjdk/bin/java"</span><span class="p">)</span> </code></pre></div></div> <p>Then running <code class="language-plaintext highlighter-rouge">M-x langtool-check-buffer</code> works!</p>