aboutsummaryrefslogtreecommitdiff
path: root/modules/prog-general.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-14 14:22:07 -0500
committerCraig Jennings <c@cjennings.net>2026-06-14 14:22:07 -0500
commit5087ed26c5624a95847a83d3e4cbfb2eb2b532d7 (patch)
tree9530432c1ef8c668005539ade93dc86b220d97ff /modules/prog-general.el
parente8fead57164c1bf6b1cf050026f6502b969ddc80 (diff)
downloaddotemacs-5087ed26c5624a95847a83d3e4cbfb2eb2b532d7.tar.gz
dotemacs-5087ed26c5624a95847a83d3e4cbfb2eb2b532d7.zip
refactor(faces): let the theme own face appearance
Strip per-module face configuration so the active theme is the single source of face styling. Removed the dired text-greying set-face-attribute calls (kept the buffer-local face-remap), the org appearance set-face-attribute calls, the highlight-indent-guides colors, the rainbow-delimiters depth colors (which were overriding the theme's blue with red), and the cj/music-* defface forms plus the emms-playlist custom-set-faces. Left nerd-icons' set-face-foreground alone, since it's runtime tint logic rather than static config. Each touched file is backed up beside it as <name>.el.faces.bak (untracked). The cj/music-* faces now come from the theme instead of the module, so until the theme provides them music rendering falls back to the default face.
Diffstat (limited to 'modules/prog-general.el')
-rw-r--r--modules/prog-general.el7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/prog-general.el b/modules/prog-general.el
index 8b4dedda..cb46ce6b 100644
--- a/modules/prog-general.el
+++ b/modules/prog-general.el
@@ -336,14 +336,9 @@ defer to `electric-pair-default-inhibit' for any other CHAR."
(use-package highlight-indent-guides
:hook (prog-mode . cj/highlight-indent-guides-enable)
:config
- ;; Disable auto face coloring to use explicit faces for better visibility across themes
+ ;; Disable auto face coloring; the guide faces are left to the theme
(setq highlight-indent-guides-auto-enabled nil)
- ;; Set explicit face backgrounds and foreground for the indentation guides
- (set-face-background 'highlight-indent-guides-odd-face "darkgray")
- (set-face-background 'highlight-indent-guides-even-face "darkgray")
- (set-face-foreground 'highlight-indent-guides-character-face "dimgray")
-
(defun cj/highlight-indent-guides-enable ()
"Enable highlight-indent-guides with preferred settings for programming modes."
(setq-local highlight-indent-guides-method 'bitmap)