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:
parent
4b631f07ef
commit
bf2aedc510
2 changed files with 10 additions and 6 deletions
|
@ -202,10 +202,14 @@
|
||||||
[delete] #'+snippets/delete-forward-char-or-field)))
|
[delete] #'+snippets/delete-forward-char-or-field)))
|
||||||
|
|
||||||
(:when (featurep! :tools flyspell)
|
(:when (featurep! :tools flyspell)
|
||||||
:m "]s" #'evil-next-flyspell-error
|
;; Keybinds that have no Emacs+evil analogues (i.e. don't exist):
|
||||||
:m "[s" #'evil-prev-flyspell-error
|
;; zq - mark word at point as good word
|
||||||
:m "]S" #'flyspell-correct-word-generic
|
;; zw - mark word at point as bad
|
||||||
:m "[S" #'flyspell-correct-previous-word-generic
|
;; 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
|
(:map flyspell-mouse-map
|
||||||
"RET" #'flyspell-correct-word-generic
|
"RET" #'flyspell-correct-word-generic
|
||||||
[return] #'flyspell-correct-word-generic
|
[return] #'flyspell-correct-word-generic
|
||||||
|
|
|
@ -398,8 +398,8 @@ between the two."
|
||||||
:m "[h" #'org-previous-visible-heading
|
:m "[h" #'org-previous-visible-heading
|
||||||
:m "]l" #'org-next-link
|
:m "]l" #'org-next-link
|
||||||
:m "[l" #'org-previous-link
|
:m "[l" #'org-previous-link
|
||||||
:m "]s" #'org-babel-next-src-block
|
:m "]c" #'org-babel-next-src-block
|
||||||
:m "[s" #'org-babel-previous-src-block
|
:m "[c" #'org-babel-previous-src-block
|
||||||
:m "^" #'evil-org-beginning-of-line
|
:m "^" #'evil-org-beginning-of-line
|
||||||
:m "0" (λ! (let (visual-line-mode) (org-beginning-of-line)))
|
:m "0" (λ! (let (visual-line-mode) (org-beginning-of-line)))
|
||||||
:n "gQ" #'org-fill-paragraph
|
:n "gQ" #'org-fill-paragraph
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue