I have tried M-x whitespace-mode
but it does not do anything.
1 Answer
The following snippet worked for me:
;; source: https://tech.tonyballantyne.com/2023/01/23/whitespace-mode/
(use-package! whitespace
:config
(setq
whitespace-style '(face tabs tab-mark spaces space-mark trailing newline newline-mark)
whitespace-display-mappings '(
(space-mark ?\ [?\u00B7] [?.])
(space-mark ?\xA0 [?\u00A4] [?_])
(newline-mark ?\n [182 ?\n])
(tab-mark ?\t [?\u00BB ?\t] [?\\ ?\t])))
(global-whitespace-mode +1))
doom-highlight-non-default-indentation-h
, try to override this and enablewhitespace-mode
?(advice-add #'doom-highlight-non-default-indentation-h :override #'ignore)
whitespace-style
?