mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Use +word-wrap-mode instead of visual-line-mode default
If the word-wrap module is enabled.
This commit is contained in:
@ -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
|
'(text-mode markdown-mode markdown-view-mode gfm-mode gfm-view-mode rst-mode
|
||||||
latex-mode LaTeX-mode)
|
latex-mode LaTeX-mode)
|
||||||
"Major-modes where `+word-wrap-mode' should not provide extra indentation.")
|
"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))
|
||||||
|
Reference in New Issue
Block a user