emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-todo-keyword-faces in agenda
@ 2017-04-12 16:28 Dale
  0 siblings, 0 replies; only message in thread
From: Dale @ 2017-04-12 16:28 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-12 16:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-12 16:28 org-todo-keyword-faces in agenda Dale

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).