Merge pull request #3825 from JakDar/develop
If +flyspell enabled, disable spell-fu keybindings and use flyspell ones
This commit is contained in:
commit
04057aec0c
3 changed files with 12 additions and 6 deletions
|
@ -279,8 +279,10 @@
|
||||||
(:when (featurep! :lang org +present)
|
(:when (featurep! :lang org +present)
|
||||||
:desc "org-tree-slide mode" "p" #'org-tree-slide-mode)
|
:desc "org-tree-slide mode" "p" #'org-tree-slide-mode)
|
||||||
:desc "Read-only mode" "r" #'read-only-mode
|
:desc "Read-only mode" "r" #'read-only-mode
|
||||||
(:when (featurep! :checkers spell)
|
(:when (and (featurep! :checkers spell) (not (featurep! :checkers spell +flyspell)))
|
||||||
:desc "Spell checker" "s" #'spell-fu-mode)
|
:desc "Spell checker" "s" #'spell-fu-mode)
|
||||||
|
(:when (featurep! :checkers spell +flyspell)
|
||||||
|
:desc "Spell checker" "s" #'flyspell-mode)
|
||||||
(:when (featurep! :lang org +pomodoro)
|
(:when (featurep! :lang org +pomodoro)
|
||||||
:desc "Pomodoro timer" "t" #'org-pomodoro)
|
:desc "Pomodoro timer" "t" #'org-pomodoro)
|
||||||
(:when (featurep! :ui zen)
|
(:when (featurep! :ui zen)
|
||||||
|
|
|
@ -661,8 +661,10 @@
|
||||||
(:when (featurep! :lang org +present)
|
(:when (featurep! :lang org +present)
|
||||||
:desc "org-tree-slide mode" "p" #'org-tree-slide-mode)
|
:desc "org-tree-slide mode" "p" #'org-tree-slide-mode)
|
||||||
:desc "Read-only mode" "r" #'read-only-mode
|
:desc "Read-only mode" "r" #'read-only-mode
|
||||||
(:when (featurep! :checkers spell)
|
(:when (and (featurep! :checkers spell) (not (featurep! :checkers spell +flyspell)))
|
||||||
:desc "Spell checker" "s" #'spell-fu-mode)
|
:desc "Spell checker" "s" #'spell-fu-mode)
|
||||||
|
(:when (featurep! :checkers spell +flyspell)
|
||||||
|
:desc "Spell checker" "s" #'flyspell-mode)
|
||||||
(:when (featurep! :lang org +pomodoro)
|
(:when (featurep! :lang org +pomodoro)
|
||||||
:desc "Pomodoro timer" "t" #'org-pomodoro)
|
:desc "Pomodoro timer" "t" #'org-pomodoro)
|
||||||
:desc "Soft line wrapping" "w" #'visual-line-mode
|
:desc "Soft line wrapping" "w" #'visual-line-mode
|
||||||
|
|
|
@ -382,10 +382,12 @@ directives. By default, this only recognizes C directives.")
|
||||||
|
|
||||||
;; implement dictionary keybinds
|
;; implement dictionary keybinds
|
||||||
;; evil already defines 'z=' to `ispell-word' = correct word at point
|
;; evil already defines 'z=' to `ispell-word' = correct word at point
|
||||||
:n "zq" #'spell-fu-word-add
|
(:when (not (featurep! :checkers spell +flyspell))
|
||||||
:n "zw" #'spell-fu-word-remove
|
:n "zq" #'spell-fu-word-add
|
||||||
:m "[s" #'spell-fu-goto-previous-error
|
:n "zw" #'spell-fu-word-remove
|
||||||
:m "]s" #'spell-fu-goto-next-error
|
:m "[s" #'spell-fu-goto-previous-error
|
||||||
|
:m "]s" #'spell-fu-goto-next-error
|
||||||
|
)
|
||||||
|
|
||||||
;; ported from vim-unimpaired
|
;; ported from vim-unimpaired
|
||||||
:n "] SPC" #'+evil/insert-newline-below
|
:n "] SPC" #'+evil/insert-newline-below
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue