Add :editor word-wrap module
Defines a new minor-mode `+word-wrap-mode` which configures adaptive-wrap-prefix-mode and visual-line-mode for smart soft-wrapping of code. Evil users can toggle it with `SPC t w`. Enable globally with `+global-word-wrap-mode`. See the README for more details!
This commit is contained in:
parent
ea34b11194
commit
6381a5c0ae
6 changed files with 170 additions and 0 deletions
15
modules/editor/word-wrap/config.el
Normal file
15
modules/editor/word-wrap/config.el
Normal file
|
@ -0,0 +1,15 @@
|
|||
;;; editor/word-wrap/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defvar +word-wrap-extra-indent 'double
|
||||
"The amount of extra indentation for wrapped non-comment lines.
|
||||
|
||||
When 'double, indent by twice the major-mode indentation.
|
||||
When 'single, indent by the major-mode indentation.
|
||||
When a positive integer, indent by this fixed amount.
|
||||
When a negative integer, dedent by this fixed amount.
|
||||
Otherwise no extra indentation will be used.")
|
||||
|
||||
(defvar +word-wrap-disabled-modes
|
||||
'(fundamental-mode so-long-mode)
|
||||
"Major-modes where `+global-word-wrap-mode' should not enable
|
||||
`+word-wrap-mode'.")
|
Loading…
Add table
Add a link
Reference in a new issue