mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user