Greetings! I've got a file-local org-todo-keyword-faces set in an
org-mode file. When I use agenda on this org file, my keyword faces
from the org-mode buffer don't carry over to the agenda buffer. I
assume this is because the local org-todo-keyword-faces value is not
set in the agenda buffer.
If my assumption is correct, does anyone have an idea of how I could
accomplish getting my file-local org-todo-keyword-faces value into
agenda buffers?
I don't want to set org-todo-keyword-faces globally since the values
there only apply to a single org-mode file.
For a test case, drop these four lines in an org-mode file:
* TODO Test
# Local Variables:
# org-todo-keyword-faces: (("TODO" . "blue"))
# End:
Load up that file, accept the "unsafe" local value, then M-x
org-agenda RET < t (all to-dos only from the current org-mode buffer).
The TODO in the agenda buffer is the default red, rather than the blue
I set in the org file.
I've thought of two *possibilities* that I haven't really explored yet:
1. Agenda could copy the keyword from the contributing org-mode buffer
with its face text property intact (but I can imagine that this would
interfere with other features, such as existing customizations in
org-agenda)
2. Some hook function that figures out which org-mode buffer(s)
contributed to an agenda view and copies/merges org-todo-keyword-faces
values into the agenda buffer
Thanks!
Dale