Files
doomemacs/modules/editor/whitespace
Henrik Lissner fbdde6b5f4 module!: add :editor whitespace
BREAKING CHANGE: Moves ws-butler, dtrt-indent, and whitespace defaults
out of Doom's core and into a new module. ws-butler is gated behind
+trim and dtrt-indent behind +guess. Users who depend on/like these
packages will need to enable the new module and their respective
flags (which is the default going forward).

This change is motivated by an ongoing effort to slim down Doom's
core (by (re)moving non-essentials from it).

This also addresses an issue where dtrt-indent would vastly increase
load times for some major-modes (e.g. elixir-mode & elm-mode, see #7537)
by restricting it to non-project files and non-read-only buffers AND
excludign those two major modes from indent guessing.

Fix: #8516
Fix: #7537
2025-09-24 02:23:30 -04:00
..
2025-09-24 02:23:30 -04:00
2025-09-24 02:23:30 -04:00
2025-09-24 02:23:30 -04:00

:editor whitespace

Description   unfold

Replace this with a short (1-2 sentence) description of what this module does. This is displayed in the module index.

Then a longer, multiple paragraph description goes here, which should explain the purpose of the module and the features/technology(ies) it provides.

Module flags

+guess
Use heuristics to automatically detect and set indent style and width settings for non-project files (or all files if +whitespace-guess-in-projects is set).
+trim
Automatically strips trailing whitespace at EOL or EOF, but only in regions of the file that have been touched in the current session (as to not too aggressively adjust whitespace in parts of a codebase you aren't responsible for).

Hacks

󱌣 This module's hacks haven't been documented yet. Document them?

TODO Changelog

This module does not have a changelog yet.

Installation

Enable this module in your doom! block.

This module has no external requirements.

Usage

󱌣 This module has no usage documentation yet. Write some?

TODO Configuration

󱌣 This module has no configuration documentation yet. Write some?

Troubleshooting

There are no known problems with this module. Report one?

Frequently asked questions

This module has no FAQs yet. Ask one?

TODO Appendix

󱌣 This module has no appendix yet. Write one?