2.8 KiB
checkers/spell
Description
This modules provides spellchecking powered by aspell
or hunspell
.
Spellcheck is automatically loaded on the following modes:
- org
- markdown
- TeX
- rst
- mu4e-compose
- message
- git-commit
Maintainers
This module has no dedicated maintainers.
Module Flags
+aspell
Useaspell
as a backend for spellchecking.+hunspell
Usehunspell
as a backend for spellchecking.+everywhere
Use spellcheck in every mode.
Plugins
- flyspell-corret
- flyspell-correct-ivy (
completion/ivy
) - flyspell-correct-helm (
completion/helm
) - flyspell-correct-popup (if neither
completion/ivy
orcompletion/helm
) - flyspell-lazy
Prerequisites
This module requires either aspell
or hunspell
as backend. It will
automatically pick aspell
if both are installed.
You can specify the backend with the +aspell
or +hunspell
flag.
Features
- Spellchecking and suggestions based on
aspell
orhunspell
. - Choosing suggestions using completion interfaces (
ivy
orhelm
). - Lazily spellchecking recent changes only when idle.
- Ignores source code inside org documents.
When using +everywhere
, flyspell-prog-mode
will be automatically loaded for
the following modes:
- yaml-mode-hook
- conf-mode-hook
- prog-mode-hook
flyspell-prog-mode
will only spellcheck comments.
Configuration
Dictionary is set by ispell-dictionary
variable. Can be changed locally with
the function ispell-change-dictionary
.
Lazy spellcheck is provided by flyspell-lazy
package.
flyspell-lazy-idle-seconds
sets how many idle seconds until spellchecking
recent changes (default as 1), while flyspell-lazy-window-idle-seconds
sets
how many seconds until the whole window is spellchecked (default as 3).
If you want to add flyspell-mode
or flyspell-prog-mode
to a specific mode,
use add-hook!
. To remove from a mode, use remove-hook!
:
(add-hook! '(org-mode-hook markdown-mode-hook
git-commit-mode-hook) #'flyspell-mode)
(remove-hook! '(markdown-mode-hook git-commit-mode-hook)
#'flyspell-mode)