spacemacs/layers/spell-checking
Sebastian Wiesner 10282c157b Remove redundant flyspell-mode hook
Markdown Mode derives from Text Mode, and thus runs text-mode-hook anyway.  Hence, there's no use in adding Flyspell Mode to Markdown Mode Hook.
2015-10-18 23:53:57 -04:00
..
config.el Add variables to opt-in to flycheck/flyspell 2015-10-10 23:18:46 -04:00
funcs.el Add variables to opt-in to flycheck/flyspell 2015-10-10 23:18:46 -04:00
packages.el Remove redundant flyspell-mode hook 2015-10-18 23:53:57 -04:00
README.org Add variables to opt-in to flycheck/flyspell 2015-10-10 23:18:46 -04:00

Spell Checking configuration layer for Spacemacs

Description

This layer provides spell checking using Flyspell.

Install

Layer

To use this configuration layer add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(spell-checking))

Spell Checker Configuration

The built-in Emacs variable that controls which external spell-checking program is used is ispell-program-name, which can be set in your dotspacemacs/user-init function if you do not like the default. It will give priority to aspell if it is installed on your system. Another important variable to be aware of is ispell-dictionary which will control the default dictionary used by ispell-program-name (instead of using this variable you can also use the key binding SPC S d).

Disabling by default

By default, spell-checking is enabled in all available major modes and may be toggled off with SPC t S. You can default this to off by setting the variable spell-checking-enable-by-default to nil:

(setq-default dotspacemacs-configuration-layers
  '((spell-checking :variables spell-checking-enable-by-default nil)))

Key Bindings

Key Binding Description
SPC S c flyspell correct
SPC S d change dictionary
SPC S n flyspell goto next error
SPC t S toggle flyspell