From d5e64d0586f52475654856038a12dc07f91e0cbb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 21 Aug 2020 03:01:15 -0400 Subject: [PATCH] Add zq, zw, ]s and [s keybinds for spell-fu These are canonical vim keybinds for interacting with the dictionary and navigating spelling errors. --- modules/editor/evil/config.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/editor/evil/config.el b/modules/editor/evil/config.el index 229801bee..9e676e2c5 100644 --- a/modules/editor/evil/config.el +++ b/modules/editor/evil/config.el @@ -376,16 +376,17 @@ directives. By default, this only recognizes C directives.") ;;; Keybinds ;; Keybinds that have no Emacs+evil analogues (i.e. don't exist): -;; zq - mark word at point as good word -;; zw - mark word at point as bad ;; zu{q,w} - undo last marking -;; Keybinds that evil define: -;; z= - correct flyspell word at point -;; ]s - jump to previous spelling error -;; [s - jump to next spelling error (map! :v "@" #'+evil:apply-macro + ;; implement dictionary keybinds + ;; evil already defines 'z=' to `ispell-word' = correct word at point + :n "zq" #'spell-fu-word-add + :n "zw" #'spell-fu-word-remove + :n "[s" #'spell-fu-goto-previous-error + :n "]s" #'spell-fu-goto-next-error + ;; ported from vim-unimpaired :n "] SPC" #'+evil/insert-newline-below :n "[ SPC" #'+evil/insert-newline-above