Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable whitespace-cleanup #3431

Conversation

nixmaniack
Copy link
Contributor

  • Default: cleanup whitespace on changed lines

@StreakyCobra
Copy link
Contributor

Perfect 👍 😄

:defer t
:if (eq 'changed dotspacemacs-whitespace-cleanup)
:init
(ws-butler-global-mode 1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you enable the mode in :init there's no point to make it deferred. Just put everything under :config and remove the deferred.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed!

- Default: cleanup whitespace on changed lines
@nixmaniack nixmaniack force-pushed the add_whitespace_cleanup_ws_butler branch from 641d289 to fa3f4b4 Compare October 16, 2015 20:23
@brandoncc
Copy link
Contributor

This is something I was looking for, thanks!

@TheBB
Copy link
Collaborator

TheBB commented Oct 31, 2015

Thanks! I love this one 👍. Cherry-picked in develop. You can safely delete your branch.

@TheBB TheBB closed this Oct 31, 2015
@d12frosted
Copy link
Collaborator

Wow, I love this change as well. Didn't know that you can cleanup only changed lines. Awesome.

@nixmaniack nixmaniack deleted the add_whitespace_cleanup_ws_butler branch November 5, 2015 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants