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)))
|
||||
|
|
|
@ -497,7 +497,6 @@ To change these keys see `+evil-repeat-keys'."
|
|||
:n "gr" #'elfeed-search-update--force
|
||||
:n "gR" #'elfeed-search-fetch))
|
||||
|
||||
:nv "z=" #'flyspell-correct-at-point
|
||||
;; custom evil keybinds
|
||||
:nv "zn" #'+evil:narrow-buffer
|
||||
:n "zN" #'doom/widen-indirectly-narrowed-buffer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue