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:
parent
68547cfb95
commit
00ddb2eba6
2 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue