Files
.emacs.d/modules/formatting/siren-whitespace-cleanup.el
Jim Myhrberg b7d914c51e feat(formatting): use whitespace-clean-mode
This should offer a more reliable means of running `whitespace-cleanup`
on buffer save than whitespace-mode's whitespace-action setting. Also it
allows for easily toggling whitespace clean up off by disabling
whitespace-clean-mode.
2021-04-25 22:44:26 +01:00

20 lines
475 B
EmacsLisp

;;; siren-whitespace-cleanup.el --- jimeh's Emacs Siren: whitespace-cleanup-mode configuration.
;;; Commentary:
;; Basic configuration for whitespace-cleanup-mode package
;;; Code:
(use-package whitespace-cleanup-mode
:defer t
:hook
(prog-mode . whitespace-cleanup-mode)
:custom
(whitespace-cleanup-mode-preserve-point nil)
(whitespace-cleanup-mode-only-if-initially-clean nil))
(provide 'siren-whitespace-cleanup)
;;; siren-whitespace-cleanup.el ends here