Add emacs mode checks to insert mode checks
This is to accommodate users who default to emacs mode, rather than insert mode. The two are also very alike, so many of these checks should apply to both (almost) equally.
This commit is contained in:
parent
8edabbecfa
commit
d149c59d2e
4 changed files with 13 additions and 5 deletions
|
@ -199,7 +199,10 @@ e.g. proselint and langtool."
|
|||
(add-hook 'flyspell-mode-hook #'+spell-init-flyspell-predicate-h)
|
||||
|
||||
(let ((flyspell-correct
|
||||
(cmds! (and (not (or mark-active (ignore-errors (evil-insert-state-p))))
|
||||
(cmds! (and (not mark-active)
|
||||
(not (and (bound-and-true-p evil-local-mode)
|
||||
(or (evil-insert-state-p)
|
||||
(evil-emacs-state-p))))
|
||||
(memq 'flyspell-incorrect (face-at-point nil t)))
|
||||
#'flyspell-correct-at-point)))
|
||||
(map! :map flyspell-mouse-map
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue