Stop ws-butler from corrupting undo history #4071

This commit is contained in:
Henrik Lissner 2020-10-11 16:23:31 -04:00
parent 3f24fc3737
commit c59ae5d172
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -565,7 +565,13 @@ files, so we replace calls to `pp' with the much faster `prin1'."
(use-package! ws-butler
;; a less intrusive `delete-trailing-whitespaces' on save
:hook (doom-first-buffer . ws-butler-global-mode))
:hook (doom-first-buffer . ws-butler-global-mode)
:config
;; ws-butler normally preserves whitespace in the buffer (but strips it from
;; the written file). While sometimes convenient, this behavior is not
;; intuitive. To the average user it looks like whitespace cleanup is failing,
;; which causes folks to redundantly install their own.
(setq ws-butler-keep-whitespace-before-point nil))
(provide 'core-editor)
;;; core-editor.el ends here