From 24f9918694750d8b97bf1770bf63bd07e14c5666 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 26 Sep 2025 00:44:44 -0400 Subject: [PATCH] refactor(whitespace): conform to naming conventions And revise docstring slightly. --- modules/editor/whitespace/config.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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."