Use +word-wrap-mode instead of visual-line-mode default

If the word-wrap module is enabled.
This commit is contained in:
Henrik Lissner 2020-04-29 15:54:21 -04:00
parent f5858a1a6c
commit 91c00d4756
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -24,3 +24,7 @@ Otherwise no extra indentation will be used.")
'(text-mode markdown-mode markdown-view-mode gfm-mode gfm-view-mode rst-mode
latex-mode LaTeX-mode)
"Major-modes where `+word-wrap-mode' should not provide extra indentation.")
(when (memq 'visual-line-mode text-mode-hook)
(remove-hook 'text-mode-hook #'visual-line-mode)
(add-hook 'text-mode-hook #'+word-wrap-mode))