From: Dale <dale@codefu.org>
To: emacs-orgmode@gnu.org
Subject: org-todo-keyword-faces in agenda
Date: Wed, 12 Apr 2017 11:28:55 -0500 [thread overview]
Message-ID: <CAEj9N4LxRdQcGrkTQB0oK2Anj1YmOKYNxKJbDxwVV+6qWkOTdQ@mail.gmail.com> (raw)
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
reply other threads:[~2017-04-12 16:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEj9N4LxRdQcGrkTQB0oK2Anj1YmOKYNxKJbDxwVV+6qWkOTdQ@mail.gmail.com \
--to=dale@codefu.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).