tweak(spell): remove RET keybind for +spell/correct

z= and M-$ are available. RET on arbitrary misspellings make DWIM
commands in text modes unpredictable, like org and markdown.
This commit is contained in:
Henrik Lissner 2021-12-18 00:15:46 +01:00
parent d9dc7339c4
commit b37d8481ce

View file

@ -134,12 +134,6 @@
prog-mode-hook)
#'spell-fu-mode))
:config
(map! :after spell-fu
:map override
:n [return]
(cmds! (memq 'spell-fu-incorrect-face (face-at-point nil t))
#'+spell/correct))
;; TODO PR this fix upstream!
(defadvice! +spell--fix-face-detection-a (fn &rest args)
"`spell-fu--faces-at-point' uses face detection that won't penetrary