refactor(whitespace): conform to naming conventions

And revise docstring slightly.
This commit is contained in:
Henrik Lissner
2025-09-26 00:44:44 -04:00
parent 1d1d17e9c9
commit 24f9918694

View File

@@ -36,11 +36,13 @@ successfully sets indent_style/indent_size.")
:defer t
:init
(add-hook! 'after-change-major-mode-hook :append
(defun +emacs-highlight-non-default-indentation-h ()
(defun +whitespace-highlight-incorrect-indentation-h ()
"Highlight whitespace at odds with `indent-tabs-mode'.
That is, highlight tabs if `indent-tabs-mode' is `nil', and highlight spaces at
the beginnings of lines if `indent-tabs-mode' is `t'. The purpose is to make
incorrect indentation in the current buffer obvious to you.
incorrect indentation in the current buffer obvious to you, so it can be noticed
and corrected.
Does nothing if `whitespace-mode' or `global-whitespace-mode' is already active
or if the current buffer is read-only or not file-visiting."