mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 03:50:24 +10:00
Moving to Doom Emacs!
This commit is contained in:
26
.emacs.d/modules/editor/word-wrap/config.el
Normal file
26
.emacs.d/modules/editor/word-wrap/config.el
Normal file
@@ -0,0 +1,26 @@
|
||||
;;; editor/word-wrap/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defvar +word-wrap-extra-indent 'double
|
||||
"The amount of extra indentation for wrapped code 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'.")
|
||||
|
||||
(defvar +word-wrap-visual-modes
|
||||
'(org-mode)
|
||||
"Major-modes where `+word-wrap-mode' should not use
|
||||
`adaptive-wrap-prefix-mode'.")
|
||||
|
||||
(defvar +word-wrap-text-modes
|
||||
'(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.")
|
||||
Reference in New Issue
Block a user