Only rebind ispell-word if flyspell-correct is enabled

flyspell-correct-at-point is not defined unless the the spell module is
enabled.
This commit is contained in:
Troy Hinckley 2020-05-15 21:48:07 -06:00
parent 68547cfb95
commit 00ddb2eba6
2 changed files with 1 additions and 1 deletions

View file

@ -87,6 +87,7 @@ e.g. proselint and langtool."
(use-package! flyspell-correct
:commands flyspell-correct-at-point flyspell-correct-previous
:general ([remap ispell-word] #'flyspell-correct-at-point)
:config
(cond ((and (featurep! :completion helm)
(require 'flyspell-correct-helm nil t)))