diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-09 17:17:54 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-09 17:17:54 -0500 |
| commit | 61824dc9f26ba8323a49e63b0bc96a418cbe383a (patch) | |
| tree | 04e3bcc8e1a10a2ce73006e05f10110aa7376d29 /modules | |
| parent | b9c966b400874aeb4dee365b94734d3f0fbac989 (diff) | |
| download | dotemacs-61824dc9f26ba8323a49e63b0bc96a418cbe383a.tar.gz dotemacs-61824dc9f26ba8323a49e63b0bc96a418cbe383a.zip | |
fix(auto-dim): flat-dim the remaining org structure faces
The earlier fix covered only the eleven faces the task named, so the document header (#+TITLE:, #+AUTHOR:, #+ARCHIVE: and their values), inline markup, drawers, planning lines, tables, and the fold indicator all stayed lit in unfocused windows.
I enumerated the faces a fontified org buffer actually uses, rather than adding only the ones I could see were wrong. Fifteen were missing.
org-todo and org-priority stay out of the flat-dim set. They're keyword class, and dimming them would erase the status colour the org-faces-*-dim variants preserve. Two tests pin that exclusion, and a third pins org-hide to the -hide face so folded text stays hidden.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/auto-dim-config.el | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/auto-dim-config.el b/modules/auto-dim-config.el index f10c1fd2..67a27345 100644 --- a/modules/auto-dim-config.el +++ b/modules/auto-dim-config.el @@ -93,6 +93,28 @@ focus cue on a split-displayed dashboard, accepted as a fair trade." (org-level-8 . (auto-dim-other-buffers . nil)) (org-link . (auto-dim-other-buffers . nil)) (org-tag . (auto-dim-other-buffers . nil)) + ;; org-todo and org-priority are deliberately absent: they are keyword + ;; class, like the org-faces-* set below, and flat-dimming them would + ;; erase the status colour those -dim variants exist to preserve. + ;; Document header: #+TITLE:, #+AUTHOR:, #+ARCHIVE: and their values. + (org-document-title . (auto-dim-other-buffers . nil)) + (org-document-info . (auto-dim-other-buffers . nil)) + (org-document-info-keyword . (auto-dim-other-buffers . nil)) + (org-meta-line . (auto-dim-other-buffers . nil)) + ;; Inline markup and source blocks. + (org-code . (auto-dim-other-buffers . nil)) + (org-verbatim . (auto-dim-other-buffers . nil)) + (org-block-begin-line . (auto-dim-other-buffers . nil)) + (org-block-end-line . (auto-dim-other-buffers . nil)) + ;; Drawers, properties, and planning lines. + (org-drawer . (auto-dim-other-buffers . nil)) + (org-special-keyword . (auto-dim-other-buffers . nil)) + (org-property-value . (auto-dim-other-buffers . nil)) + (org-date . (auto-dim-other-buffers . nil)) + ;; Tables and the fold indicator. + (org-table . (auto-dim-other-buffers . nil)) + (org-table-row . (auto-dim-other-buffers . nil)) + (org-ellipsis . (auto-dim-other-buffers . nil)) ;; Org TODO-keyword + priority faces dim to their own -dim variant ;; (a darker shade of the same colour) rather than the flat gray, so ;; a dimmed window's keywords stay recognizable. Faces are defined |
