diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-10 00:48:54 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-10 00:48:54 -0500 |
| commit | 47b2e618a0547f8613784e7b25e94aed2f596f84 (patch) | |
| tree | b2ab3aa188421986ec232464064e7f2f672169e2 /modules/auto-dim-config.el | |
| parent | 621287447f149eb571e00c067e410704c4ebf968 (diff) | |
| download | dotemacs-47b2e618a0547f8613784e7b25e94aed2f596f84.tar.gz dotemacs-47b2e618a0547f8613784e7b25e94aed2f596f84.zip | |
fix(auto-dim): dim the built-in link faces in unfocused windows
link and link-visited were absent from auto-dim-other-buffers-affected-faces, so links in help, info, and customize buffers stayed lit while the rest of the window faded. They're distinct from org-link, which the earlier org pass covered.
Both carry :underline t, and the dim face sets no underline, so the relative remap drops the colour and keeps the cue. A second test pins that: if a theme ever gives auto-dim-other-buffers an :underline, dimmed links stop looking like links and the suite says so.
Diffstat (limited to 'modules/auto-dim-config.el')
| -rw-r--r-- | modules/auto-dim-config.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/auto-dim-config.el b/modules/auto-dim-config.el index c7216655..fd69a328 100644 --- a/modules/auto-dim-config.el +++ b/modules/auto-dim-config.el @@ -83,6 +83,11 @@ 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)) + ;; 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. + (link . (auto-dim-other-buffers . nil)) + (link-visited . (auto-dim-other-buffers . nil)) ;; Org structure faces flat-dim like font-lock rather than getting ;; -dim variants: the active theme gives org-level-1..8 one shared ;; foreground and no height or weight, so there is no level-by-colour |
