Skip to content

Fork of flycheck-grammalecte to support Grammalecte v0.6.4+

License

Notifications You must be signed in to change notification settings

Bridouz/flycheck-grammalecte

 
 

Repository files navigation

Flycheck-grammalecte

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

./demo.gif

Installation

https://stable.melpa.org/packages/flycheck-grammalecte-badge.svg

https://melpa.org/packages/flycheck-grammalecte-badge.svg

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

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:
(setq flycheck-grammalecte-enabled-modes
      '(org-mode text-mode mail-mode latex-mode markdown-mode mu4e-compose-mode))
(require 'flycheck-grammalecte)

Usage

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

About

Fork of flycheck-grammalecte to support Grammalecte v0.6.4+

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Emacs Lisp 55.7%
  • Python 38.5%
  • Makefile 5.8%