aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-10 06:26:28 -0500
committerCraig Jennings <c@cjennings.net>2026-07-10 06:26:28 -0500
commit216e10b4df8ce93aa42f005033ed07210d38a929 (patch)
tree7fa4819acefb963a722d12f2449f05592f2f66a2 /modules
parent6a193a6c4b36c6bae4a5e2f2a7a8e8b9a32aed71 (diff)
downloaddotemacs-216e10b4df8ce93aa42f005033ed07210d38a929.tar.gz
dotemacs-216e10b4df8ce93aa42f005033ed07210d38a929.zip
fix(auto-dim): dim org-superstar's heading stars and list bullets
Bullets were the last thing left lit in an unfocused org window. org-superstar puts its own face ahead of the org face beneath, so a heading star renders as (org-superstar-header-bullet org-level-1) and outranks the org-level-1 we already dim. Three of its four faces flat-dim. The fourth, org-superstar-leading, takes the -hide face instead: its foreground is the background colour, which is exactly what keeps hidden leading stars invisible. Flat-dimming it would reveal stars I chose to hide. A test says so, so nobody completes the set later. That closes the dimming work. The parenthesised text from the first report turned out to be org-code and org-verbatim, already covered.
Diffstat (limited to 'modules')
-rw-r--r--modules/auto-dim-config.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/auto-dim-config.el b/modules/auto-dim-config.el
index fd69a328..fae00b48 100644
--- a/modules/auto-dim-config.el
+++ b/modules/auto-dim-config.el
@@ -83,6 +83,17 @@ focus cue on a split-displayed dashboard, accepted as a fair trade."
(font-lock-builtin-face . (auto-dim-other-buffers . nil))
(font-lock-preprocessor-face . (auto-dim-other-buffers . nil))
(font-lock-warning-face . (auto-dim-other-buffers . nil))
+ ;; org-superstar draws heading stars and list bullets, and puts its own face
+ ;; ahead of the org face beneath, so a star renders as
+ ;; (org-superstar-header-bullet org-level-1) and outranks the dimmed level.
+ ;; Without these three, bullets are the last thing left lit in a dimmed window.
+ (org-superstar-header-bullet . (auto-dim-other-buffers . nil))
+ (org-superstar-item . (auto-dim-other-buffers . nil))
+ (org-superstar-first . (auto-dim-other-buffers . nil))
+ ;; org-superstar-leading takes the -hide face, not the flat dim: its
+ ;; foreground IS the background colour, which is what keeps hidden leading
+ ;; stars invisible. Flat-dimming it would reveal them. Same as org-hide.
+ (org-superstar-leading . (auto-dim-other-buffers-hide . nil))
;; The built-in link faces, distinct from org-link below. They fontify
;; links in help, info, and customize buffers. Both carry :underline t,
;; which survives the relative remap, so a dimmed link still reads as one.