Correct flyspell highlighted word on mouse-1 or RET

RET will only trigger if cursor is on the highlighted word.
This commit is contained in:
Henrik Lissner 2018-01-16 01:55:49 -05:00
parent 3ff85f6f37
commit facfeb5f7a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -478,6 +478,11 @@
;; flyspell
:m "]S" #'flyspell-correct-word-generic
:m "[S" #'flyspell-correct-previous-word-generic
(:after flyspell
;; Press RET on misspelled words to correct them
(:map flyspell-mouse-map
"RET" #'flyspell-correct-word-generic
"<mouse-1>" #'flyspell-correct-word-generic))
;; git-gutter
:m "]d" #'git-gutter:next-hunk