emacs: Rename no-ws-cleanup → my/no-ws-cleanup.

This commit is contained in:
tastytea 2020-01-07 07:32:59 +01:00
parent 6fdc5b523a
commit cee9ee3bf9
1 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-12-26T19:50:08+0100>
;; Time-stamp: <2020-01-07T07:32:45+0100>
;;; Commentary:
@ -262,14 +262,14 @@
(whitespace-mode)
)
(defvar no-ws-cleanup nil
(defvar my/no-ws-cleanup nil
"Do not cleanup whitespace if t.")
(make-variable-buffer-local 'no-ws-cleanup)
(put 'no-ws-cleanup 'safe-local-variable #'booleanp) ; Mark as safe.
(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 ()
"Run `whitespace-cleanup' if `no-ws-cleanup' is not t."
(unless no-ws-cleanup
"Run `whitespace-cleanup' if `my/no-ws-cleanup' is not t."
(unless my/no-ws-cleanup
(whitespace-cleanup))
)