Add whitespace-cleanup-mode
This commit is contained in:
parent
d59ff1f811
commit
1f5beecd45
7
init.el
7
init.el
|
@ -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*"))
|
||||
|
|
Loading…
Reference in New Issue