aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-14 16:54:32 -0500
committerCraig Jennings <c@cjennings.net>2026-06-14 16:54:32 -0500
commitf3ece66f0e16ff35990efdf24f875537aad924cc (patch)
treea48b55a92bfc78220927f0bd83364c182bf51208
parentffd5d8dd357c835a94d4f1d7e39825539681fe8c (diff)
downloaddotemacs-f3ece66f0e16ff35990efdf24f875537aad924cc.tar.gz
dotemacs-f3ece66f0e16ff35990efdf24f875537aad924cc.zip
refactor(org): let the theme color todo keywords and priorities
org-todo-keyword-faces and org-priority-faces pinned the keywords and priority cookies to dupre-org-* faces, which only exist when the dupre theme is loaded. Under any other theme those faces are undefined, so org keywords and priorities fell back to the default face instead of the theme's org-todo / org-done / org-priority. Dropped both maps so org follows whatever theme is active. The TODO state sequence and the priority range stay.
-rw-r--r--modules/org-config.el23
1 files changed, 3 insertions, 20 deletions
diff --git a/modules/org-config.el b/modules/org-config.el
index 34b618d1..26b5f0aa 100644
--- a/modules/org-config.el
+++ b/modules/org-config.el
@@ -143,29 +143,12 @@ edge, less the tag width.")
"DELEGATED(x)" "|"
"FAILED(f!)" "DONE(d!)" "CANCELLED(c!)")))
- ;; Keyword and priority colors come from the active theme's dupre-org-*
- ;; faces (themes/dupre-faces.el) rather than hard-coded color names, so they
- ;; match the palette and dim with the rest of an unfocused window
- ;; (auto-dim-config.el remaps each to its -dim variant).
- (setq org-todo-keyword-faces
- '(("TODO" . dupre-org-todo)
- ("PROJECT" . dupre-org-project)
- ("DOING" . dupre-org-doing)
- ("WAITING" . dupre-org-waiting)
- ("VERIFY" . dupre-org-verify)
- ("STALLED" . dupre-org-stalled)
- ("DELEGATED" . dupre-org-todo)
- ("FAILED" . dupre-org-failed)
- ("DONE" . dupre-org-done)
- ("CANCELLED" . dupre-org-done)))
-
+ ;; Keyword and priority colors are left to the active theme's standard org
+ ;; faces (org-todo / org-done / org-priority) so they follow whatever theme is
+ ;; loaded rather than hard-wiring the dupre-org-* faces.
(setq org-highest-priority ?A)
(setq org-lowest-priority ?D)
(setq org-default-priority ?D)
- (setq org-priority-faces '((?A . dupre-org-priority-a)
- (?B . dupre-org-priority-b)
- (?C . dupre-org-priority-c)
- (?D . dupre-org-priority-d)))
(setq org-enforce-todo-dependencies t)
(setq org-enforce-todo-checkbox-dependencies t)