Skip to content

Commit

Permalink
tweak(builtin): better color for displaying trailing white space
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 26, 2024
1 parent f7804eb commit bcf5089
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@
;; Show trailing whitespace in `prog-mode' and `conf-mode'
(+setq-hook! (prog-mode conf-mode) show-trailing-whitespace t)

;; Change the color of trailing whitespace, it seems that setting this too
;; early (even after `faces') doesn't persist.
(with-eval-after-load 'minemacs-loaded
(set-face-background 'trailing-whitespace "snow3"))

;; Guess the major mode after saving a file in `fundamental-mode' (adapted from Doom Emacs).
(defun +save--guess-file-mode-h ()
"Guess major mode when saving a file in `fundamental-mode'.
Expand Down

0 comments on commit bcf5089

Please sign in to comment.