emacs-bindings: default toggle for wrapping
Use `visual-line-mode' when the `word-wrap' module is not enabled. Uses the same wording and logic as the evil bindings.
This commit is contained in:
parent
cdbd39ba26
commit
ae5640dc9d
1 changed files with 3 additions and 1 deletions
|
@ -283,7 +283,9 @@
|
||||||
:desc "Frame fullscreen" "F" #'toggle-frame-fullscreen
|
:desc "Frame fullscreen" "F" #'toggle-frame-fullscreen
|
||||||
:desc "Indent style" "I" #'doom/toggle-indent-style
|
:desc "Indent style" "I" #'doom/toggle-indent-style
|
||||||
:desc "Line numbers" "l" #'doom/toggle-line-numbers
|
:desc "Line numbers" "l" #'doom/toggle-line-numbers
|
||||||
:desc "Word-wrap mode" "w" #'+word-wrap-mode
|
:desc "Soft line wrapping" "w" #'visual-line-mode
|
||||||
|
(:when (featurep! :editor word-wrap)
|
||||||
|
:desc "Soft line wrapping" "w" #'+word-wrap-mode)
|
||||||
(:when (featurep! :checkers syntax)
|
(:when (featurep! :checkers syntax)
|
||||||
:desc "Flycheck" "f" #'flycheck-mode)
|
:desc "Flycheck" "f" #'flycheck-mode)
|
||||||
(:when (featurep! :ui indent-guides)
|
(:when (featurep! :ui indent-guides)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue