|
From: | Le Wang |
Subject: | Re: Electric indentation sub-optimality and resolution |
Date: | Sat, 20 Dec 2014 19:36:35 -0500 |
> I actually really like the behavior of the code I posted. It has an added
> small bonus. Normally it does not cleanup pre-existing whitespace. When I
> modify a line with trailing whitespace it does cleanup that one line,
> something my projects' guidelines allow.
That's what ws-butler does.
OTOH, your code is ok for adding it to the user's personal .emacs, but
not for incorporation into Emacs. The code should be made into a minor
mode or an optional feature of electric-indent-mode. Creating a new
minor mode makes more sense, IMO.
Anyways, we need to hear the opinion of the author of ws-butler package.
AFAIK he tried a similar approach to yours and found problems with it.
[Prev in Thread] | Current Thread | [Next in Thread] |