emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] scratch/editorconfig-cc 2ba007601a 219/351: Add document for ed


From: Stefan Monnier
Subject: [nongnu] scratch/editorconfig-cc 2ba007601a 219/351: Add document for editorconfig-trim-whitespaces-mode
Date: Thu, 13 Jun 2024 18:38:55 -0400 (EDT)

branch: scratch/editorconfig-cc
commit 2ba007601a7e7d5edfd4aff3b2f42b337d8d7925
Author: 10sr <8.slashes@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    Add document for editorconfig-trim-whitespaces-mode
---
 README.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/README.md b/README.md
index 9989969e46..9b540768a9 100644
--- a/README.md
+++ b/README.md
@@ -127,6 +127,24 @@ Possible known values are:
 * `editorconfig-core-get-properties-hash`
   * Always use built-in Emacs-Lisp implementation to get properties
 
+
+### `editorconfig-trim-whitespaces-mode`
+
+Buffer local minor-mode to use to trim trailing whitespaces.
+
+If set, enable that mode when `trim_trailing_whitespace` is set to true.
+Otherwise, use `delete-trailing-whitespace'.
+
+One possible value is
+[`ws-butler-mode`](https://github.com/lewang/ws-butler), with which
+only lines touched get trimmed. To use it, add following to yo
+init.el:
+
+``` emacs-lisp
+(setq editorconfig-trim-whitespaces-mode
+      'ws-butler-mode)
+```
+
 ## Testing
 
 Make and [CMake](https://cmake.org) must be installed to run the tests.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]