Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
LanguageTool for Emacs
branch: master
Failed to load latest commit information.
.travis.yml improve test (for now, empty test)
DEVEL improve doc
Makefile improve test (for now, empty test)
README.md update doc
langtool-test.el improve test (for now, empty test)
langtool.el version up

README.md

langtool.el

Grammar checks utility using LanguageTool

Install:

Install LanguageTool (and java) http://www.languagetool.org/

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")

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")

Usage:

  • 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 marker is removed.

    M-x langtool-check-done

Something went wrong with that request. Please try again.