Merge pull request #2276 from brettlyons/patch-1

tools/flyspell: fix flyspell-correct
This commit is contained in:
Henrik Lissner 2020-01-02 00:03:16 -05:00 committed by GitHub
commit 369a304f7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -509,7 +509,7 @@ To change these keys see `+evil-repeat-keys'."
:n "gr" #'elfeed-search-update--force
:n "gR" #'elfeed-search-fetch))
:nv "z=" #'flyspell-correct-word-generic
:nv "z=" #'flyspell-correct-at-point
;; custom evil keybinds
:nv "zn" #'+evil:narrow-buffer
:n "zN" #'doom/widen-indirectly-narrowed-buffer

View file

@ -68,13 +68,13 @@ e.g. proselint and langtool."
(add-hook 'flyspell-mode-hook #'+flyspell-init-predicate-h)
(map! :map flyspell-mouse-map
"RET" #'flyspell-correct-word-generic
[return] #'flyspell-correct-word-generic
[mouse-1] #'flyspell-correct-word-generic))
"RET" #'flyspell-correct-at-point
[return] #'flyspell-correct-at-point
[mouse-1] #'flyspell-correct-at-point))
(use-package! flyspell-correct
:commands flyspell-correct-word-generic flyspell-correct-previous-word-generic
:commands flyspell-correct-at-point flyspell-correct-previous
:config
(cond ((and (featurep! :completion helm)
(require 'flyspell-correct-helm nil t)))