mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-14 15:46:56 -05:00
feat(word-wrap): add soft-wrapping at fill-column
Using visual-fill-column. Close: #1906 Co-authored-by: flatwhatson <flatwhatson@users.noreply.github.com>~
This commit is contained in:
@@ -10,6 +10,18 @@ When a negative integer, dedent by this fixed amount.
|
||||
|
||||
Otherwise no extra indentation will be used.")
|
||||
|
||||
(defvar +word-wrap-fill-style nil
|
||||
"How to handle `fill-column' in `+word-wrap-mode'.
|
||||
|
||||
When 'auto, long lines will soft-wrap at `fill-column'. If `auto-fill-mode' is
|
||||
enabled, its behaviour will not be affected.
|
||||
|
||||
When 'soft, long lines will soft-wrap at `fill-column' and `auto-fill-mode' will
|
||||
be forcibly disabled.
|
||||
|
||||
Otherwise long lines will soft-wrap at the window margin and `auto-fill-mode'
|
||||
will not be affected.")
|
||||
|
||||
(defvar +word-wrap-disabled-modes
|
||||
'(fundamental-mode so-long-mode)
|
||||
"Major-modes where `+global-word-wrap-mode' should not enable
|
||||
|
Reference in New Issue
Block a user