mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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.
20 lines
475 B
EmacsLisp
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
|