lewang / ws-butler

Unobtrusively trim extraneous white-space *ONLY* in lines edited.
242 stars 26 forks source link

Tabify indentation for non-nil indent-tabs-mode #17

Closed ilohmar closed 7 years ago

ilohmar commented 8 years ago

When indent-tabs-mode is t, replace spaces in the indentation by tabs, just as we do the opposite when the mode is nil.

This makes is very smooth to work on codebases that want tabs for indentation as well.

ilohmar commented 8 years ago

Ping. Is there anything I can do to make this happen?

1) The failing test is just an artifact of missing tests, it seems? 2) I like ws-butler and it works flawlessly in my everyday work. But we use tabs for indentation, and this addition makes ws-butler a complete solution for such codebases as well.

It would be very helpful if you could let me know if you are planning to look at and/or accept this PR some time (which I hope), or whether you flat out reject it.

Thank you!

lewang commented 8 years ago

sorry about that, should see progress in next few days.

ilohmar commented 7 years ago

Awesome, let me know if I can help.

ilohmar commented 7 years ago

Thanks!

lewang commented 7 years ago

thanks for contributing!