diff --git a/modules/editor/whitespace/config.el b/modules/editor/whitespace/config.el index fed91af2f..271144080 100644 --- a/modules/editor/whitespace/config.el +++ b/modules/editor/whitespace/config.el @@ -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."