mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-30 17:01:02 -05:00
refactor(whitespace): conform to naming conventions
And revise docstring slightly.
This commit is contained in:
@@ -36,11 +36,13 @@ successfully sets indent_style/indent_size.")
|
|||||||
:defer t
|
:defer t
|
||||||
:init
|
:init
|
||||||
(add-hook! 'after-change-major-mode-hook :append
|
(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'.
|
"Highlight whitespace at odds with `indent-tabs-mode'.
|
||||||
|
|
||||||
That is, highlight tabs if `indent-tabs-mode' is `nil', and highlight spaces at
|
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
|
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
|
Does nothing if `whitespace-mode' or `global-whitespace-mode' is already active
|
||||||
or if the current buffer is read-only or not file-visiting."
|
or if the current buffer is read-only or not file-visiting."
|
||||||
|
Reference in New Issue
Block a user