2 ms·
Emacs calls the concept "fill", and has had it as a basic built-in feature for decades. This documentation page "https://www.gnu.org/software/emacs/manual/html
by neilv 3y ago
Emacs calls the concept "fill", and has had it as a basic built-in feature for decades.
This documentation page "https://www.gnu.org/software/emacs/manual/html_node/emacs/Fill-Commands.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Fi..." doesn't do it justice, because Emacs will often do smart language- and context-appropriate things in different buffer modes.
For example, I use this feature heavily to help make my Markdown files appear semi-wysiwyg to anyone viewing them in plain text (e.g., different levels of bulleted/numbered lists are formatted).
It also keeps my code comments tidy, and encourages me to keep them up to date, because I don't have to mess with formatting.
There's also a command to temporarily set a "fill prefix" based on the point in the current line, such as if you want to fill something differently than how Emacs would do it by default.