Emacs: Refactor my/no-ws-cleanup.

This commit is contained in:
tastytea 2020-03-27 17:13:32 +01:00
parent fb639bfab1
commit 6faf976d67
1 changed files with 1 additions and 2 deletions

View File

@ -280,9 +280,8 @@
(whitespace-mode)
)
(defvar my/no-ws-cleanup nil
(defvar-local my/no-ws-cleanup nil
"Do not cleanup whitespace if t.")
(make-variable-buffer-local 'my/no-ws-cleanup)
(put 'my/no-ws-cleanup 'safe-local-variable #'booleanp) ; Mark as safe.
(defun my/ws-maybe-cleanup ()