aboutsummaryrefslogtreecommitdiff
path: root/modules
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
commitabaf96f1b4b9efc296161e2315549f55377740b4 (patch)
tree9970fe3a72add704ee74ab03916eeb2bbbef8acb /modules
parent63035cff73b0f93ceb3785cda1cd4a1f068ec58c (diff)
downloaddotemacs-abaf96f1b4b9efc296161e2315549f55377740b4.tar.gz
dotemacs-abaf96f1b4b9efc296161e2315549f55377740b4.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.
Diffstat (limited to 'modules')
-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 34b618d1a..26b5f0aa5 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)