summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-05-05 12:34:44 -0500
committerCase Duckworth2021-05-05 12:34:44 -0500
commit1f5beecd45bf3f91db80165426e4a0949fe78fbf (patch)
tree59386679fd88b3c8ec53abc3d5f79e51c83dc67d
parentRemove complicated which-key delay (diff)
downloademacs-1f5beecd45bf3f91db80165426e4a0949fe78fbf.tar.gz
emacs-1f5beecd45bf3f91db80165426e4a0949fe78fbf.zip
Add whitespace-cleanup-mode
-rw-r--r--init.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/init.el b/init.el index da6623c..e2d5950 100644 --- a/init.el +++ b/init.el
@@ -563,9 +563,7 @@
563 tab-width 4 563 tab-width 4
564 backward-delete-char-untabify-method 'hungry) 564 backward-delete-char-untabify-method 'hungry)
565 565
566 (:global "M-SPC" cycle-spacing) 566 (:global "M-SPC" cycle-spacing))
567
568 (add-hook 'before-save-hook #'whitespace-cleanup))
569 567
570(setup windows 568(setup windows
571 (:option use-dialog-box nil 569 (:option use-dialog-box nil
@@ -1047,6 +1045,9 @@ if ripgrep is installed, otherwise `consult-grep'."
1047 (which-key-setup-side-window-right-bottom) 1045 (which-key-setup-side-window-right-bottom)
1048 (which-key-mode +1)) 1046 (which-key-mode +1))
1049 1047
1048(setup (:straight whitespace-cleanup-mode)
1049 (global-whitespace-cleanup-mode +1))
1050
1050(setup (:straight winum) 1051(setup (:straight winum)
1051 (:option winum-auto-setup-mode-line nil 1052 (:option winum-auto-setup-mode-line nil
1052 winum-ignored-buffers '(" *which-key*")) 1053 winum-ignored-buffers '(" *which-key*"))