Skip to content


Subversion checkout URL

You can clone with
Download ZIP
LanguageTool for Emacs
Emacs Lisp Makefile
branch: master
Failed to load latest commit information.
.gitignore update README from elisp commentary
.travis.yml improve test (for now, empty test)
DEVEL add package require info
Makefile improve test (for now, empty test)
langtool-test.el improve test (for now, empty test)
langtool.el add package require info



Install LanguageTool (and java)

Put this file into load-path'ed directory, and byte compile it if desired. And put the following expression into your ~/.emacs.

(require 'langtool)
(setq langtool-language-tool-jar "/path/to/languagetool-commandline.jar")

If you use old version of LanguageTool, may be:

(setq langtool-language-tool-jar "/path/to/LanguageTool.jar")

Alternatively, you can set the classpath where LanguageTool's jars reside:

(require 'langtool)
(setq langtool-java-classpath

This setting is optional

(global-set-key "\C-x4w" 'langtool-check)
(global-set-key "\C-x4W" 'langtool-check-done)
(global-set-key "\C-x4l" 'langtool-switch-default-language)
(global-set-key "\C-x44" 'langtool-show-message-at-point)
(global-set-key "\C-x4c" 'langtool-correct-buffer)

Currently GNU java version not works.

(setq langtool-java-bin "/path/to/java")

Maybe you want to specify your mother tongue.

(setq langtool-mother-tongue "en")


  • To check current buffer and show warnings.
M-x langtool-check
  • To correct marker follow LanguageTool suggestions.
M-x langtool-correct-buffer
  • Goto warning point and
M-x langtool-show-message-at-point
  • To finish checking. All langtool marker is removed.
M-x langtool-check-done
Something went wrong with that request. Please try again.