Commit 76095dd5 authored by Arjen Wiersma's avatar Arjen Wiersma

Add grammar checking with LanguageTool.

parent e8105169
......@@ -5,3 +5,4 @@
/projectile-bookmarks.eld
/arc-dark-theme/
/LanguageTool*
......@@ -558,6 +558,28 @@ Now for the leanpub-export.
;; (message "Preview generation queued at leanpub.com.")))))
#+END_SRC
** Grammar checking
I want to write decent English and Dutch. To that end I do not only need a decent spell checker but also a grammar checker. [[https://languagetool.org/][LanguageTool]] provides a language independent mechanism to check grammar. Get the desktop (offline) version from the website.
#+begin_src
wget https://languagetool.org/download/LanguageTool-4.4.zip
unzip LanguageTool-4.4.zip
#+end_src
Then include the ~langtool~ package. This process checks every word in the buffer and does not consider things like code blocks, so only use on actual text files or perhaps narrow the region?
#+begin_src emacs-lisp
(use-package langtool
:ensure t
:config (setq langtool-language-tool-server-jar (concat (getenv "HOME") "/.emacs.d/LanguageTool-4.4/languagetool-server.jar"))
:bind (("\C-x4w" . langtool-check)
("\C-x4W" . langtool-check-done)
("\C-x4l" . langtool-switch-default-language)
("\C-x44" . langtool-show-message-at-point)
("\C-x4c" . langtool-correct-buffer)))
#+end_src
** Word wrapping
Please wrap text around when in text-modes. Also enable flyspell to catch nasty writing errors.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment