aboutsummaryrefslogtreecommitdiffhomepage

Simple wrapper for the french language checking tool Grammalecte and the flycheck GNU Emacs package.

Installation

This package has a strong dependency on python3. The installation of the right version of python is up to you.

flycheck-grammalecte is available on MELPA stable and unstable. Please read the Installing Package documentation from the EmacsWiki to know more how to install a package. A manual installation procedure exists too if you prefer.

If you install flycheck-grammalecte as a package, you need to add the following line somewhere in your GNU Emacs config file:

Then restart GNU Emacs.

Finally, the last expected step is to download the CLI & Server upstream package. Just enter the following command: M-x flycheck-grammalecte-download-grammalecte

Configuration

All options are accessibles with customize. In GNU Emacs, enter M-x customize, then click on Editing, then I18n, and finally on Flycheck Grammalecte.

You can also set this variables in your GNU Emacs config file. Here is a quick reference of the available variables:

flycheck-grammalecte-report-spellcheck
If this variable is set to nil, Flycheck will not report spellchecking error. Only grammar errors will be notified. This can be handy when you want to use flyspell or ispell. Default is t.
flycheck-grammalecte-report-grammar
If this variable is set to nil, Flycheck will not report grammar error. Only spellchecking errors will be notified. Default is t.
flycheck-grammalecte-report-apos
If this variable is set to nil, Flycheck will not report typographical apostrophes (’) error. This can be usefull when your main editor mode manage apostrophe by itself (like LaTeX, org-mode export…). Default is t.
flycheck-grammalecte-report-nbsp
If this variable is set to nil, Flycheck will not report non-breakable spaces error. This can be usefull when your main editor mode manage spaces by itself (like LaTeX, org-mode export…). Default is t.
flycheck-grammalecte-report-esp
If this variable is set to nil, Flycheck will not report useless spaces and tabs error. This can be usefull when your main editor mode manage spaces by itself (like LaTeX, org-mode export…). Default is t.
flycheck-grammalecte-enabled-modes
This variable stores the list of major modes for which flycheck-grammalecte must be used. Warning, this variable must be set before loading flycheck-grammalecte itself. Thus, do not try to set it with customize. Put it directly in your GNU Emacs config file. Default is ’(org-mode text-mode mail-mode latex-mode). To add markdown mode, for example, use the following line:

Usage

In an Org buffer, for example, type M-x flycheck-mode.