Add whitespace-cleanup-mode

This commit is contained in:
Case Duckworth 2021-05-05 12:34:44 -05:00
parent d59ff1f811
commit 1f5beecd45
1 changed files with 4 additions and 3 deletions

View File

@ -563,9 +563,7 @@
tab-width 4
backward-delete-char-untabify-method 'hungry)
(:global "M-SPC" cycle-spacing)
(add-hook 'before-save-hook #'whitespace-cleanup))
(:global "M-SPC" cycle-spacing))
(setup windows
(:option use-dialog-box nil
@ -1047,6 +1045,9 @@ if ripgrep is installed, otherwise `consult-grep'."
(which-key-setup-side-window-right-bottom)
(which-key-mode +1))
(setup (:straight whitespace-cleanup-mode)
(global-whitespace-cleanup-mode +1))
(setup (:straight winum)
(:option winum-auto-setup-mode-line nil
winum-ignored-buffers '(" *which-key*"))