ws-butler
Unobtrusively trim extraneous white-space *ONLY* in lines edited. (by lewang)
whitespace-cleanup-mode
In Emacs, intelligently call whitespace-cleanup on save (by purcell)
ws-butler | whitespace-cleanup-mode | |
---|---|---|
6 | 3 | |
237 | 120 | |
- | - | |
0.0 | 3.6 | |
over 1 year ago | 6 months ago | |
Emacs Lisp | Emacs Lisp | |
- | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ws-butler
Posts with mentions or reviews of ws-butler.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-11.
-
Bad Emacs Defaults
Another option is to use ws-butler[0], which only deletes trailing whitespace on lines you've edited. This way you don't create spurious diffs on version controlled files (future `git blame` users will thank you).
[0]: https://github.com/lewang/ws-butler
-
Alternative to ws-butler
The rep on GitHub seems to be dead. Last commit was 2020.
-
Fix for Invalid Syntax errors in Python Org Mode source blocks
Perhaps not quite the solution (but maybe it is) - have a look at something like https://github.com/lewang/ws-butler or similar whitespace-cleanup packages. Also as others noted making sure org-src-preserve-indentation is set.
-
How to "use-package" with eglot, python-mode and company-mode?
I have some more examples; e.g. the ws-buttler. Do I start it that way? (use-package ws-butler :init (progn (add-hock 'python-mode-hook 'ws-butler-mode)))
-
strip whitespace only on changed lines
See lewang/ws-butler.
-
My nuke whitespace on save setup
you may find https://github.com/lewang/ws-butler interesting
whitespace-cleanup-mode
Posts with mentions or reviews of whitespace-cleanup-mode.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-24.
-
strip whitespace only on changed lines
I know there is the whitespace-cleanup-mode which does a okay job with the option to only do cleanup when the file was already clean, but i would like to go further and only do whitespace cleanup on the lines i have modified.
- whitespace-cleanup-mode: intelligently call whitespace-cleanup on save
-
get rid of gray boxes
Others have said how to hide them but if you want to clean them up use M-x whitespace-cleanup. If so you may want to consider purcell/whitespace-cleanup-mode.
What are some alternatives?
When comparing ws-butler and whitespace-cleanup-mode you can also consider the following projects:
vim-better-whitespace - Better whitespace highlighting for Vim
espanso - Cross-platform Text Expander written in Rust
no-littering - Help keeping ~/.config/emacs clean
python-mode
dotfiles - Yet another dotfile-repository