Simple wrapper for the french language checking tool Grammalecte and the flycheck GNU Emacs package.
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:
(require 'flycheck-grammalecte)
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
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 ist
. flycheck-grammalecte-report-grammar
- If this variable is set to
nil
, Flycheck will not report grammar error. Only spellchecking errors will be notified. Default ist
. 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 ist
. 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 ist
. 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 ist
. 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 withcustomize
. 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:
(setq flycheck-grammalecte-enabled-modes
'(org-mode text-mode mail-mode latex-mode markdown-mode mu4e-compose-mode))
(require 'flycheck-grammalecte)
In an Org buffer, for example, type M-x flycheck-mode
.