lewang / ws-butler

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

disable changing leading whitespace by default #28

Closed ian-kelling closed 7 years ago

ian-kelling commented 7 years ago

This fixes #25.

This should be merged instead of pull request #27. It's the same except condition on a config option instead of smart tabs (and use when instead of if).

npostavs commented 7 years ago

Perhaps also incorporate the check from on smart-tabs-mode from #27? Though it should be (bound-and-true-p smart-tabs-mode) to avoid error if smart-tabs-mode is not loaded.

ian-kelling commented 7 years ago

Perhaps also incorporate the check from on smart-tabs-mode from #27? Though it should be (bound-and-true-p smart-tabs-mode) to avoid error if smart-tabs-mode is not loaded

I buy that. The pull request has been updated.