lang/org: rethink flyspell keybinds

- Remove ]s/[s keybinds in org-mode (rebound to ]c/[c); they overwrote
  next/prev flyspell error commands (which are vim defaults)
- Remove ]S/[S because z= already exists
- Remove redundant ]s/[s global keybinds (already bound by evil)
- Mention missing and evil's flyspell keybinds in a comment
This commit is contained in:
Henrik Lissner 2019-04-04 13:37:10 -04:00
parent 4b631f07ef
commit bf2aedc510
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395
2 changed files with 10 additions and 6 deletions

View File

@ -202,10 +202,14 @@
[delete] #'+snippets/delete-forward-char-or-field)))
(:when (featurep! :tools flyspell)
:m "]s" #'evil-next-flyspell-error
:m "[s" #'evil-prev-flyspell-error
:m "]S" #'flyspell-correct-word-generic
:m "[S" #'flyspell-correct-previous-word-generic
;; 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 flyspell-mouse-map
"RET" #'flyspell-correct-word-generic
[return] #'flyspell-correct-word-generic

View File

@ -398,8 +398,8 @@ between the two."
:m "[h" #'org-previous-visible-heading
:m "]l" #'org-next-link
:m "[l" #'org-previous-link
:m "]s" #'org-babel-next-src-block
:m "[s" #'org-babel-previous-src-block
:m "]c" #'org-babel-next-src-block
:m "[c" #'org-babel-previous-src-block
:m "^" #'evil-org-beginning-of-line
:m "0" (λ! (let (visual-line-mode) (org-beginning-of-line)))
:n "gQ" #'org-fill-paragraph