From: "Sullivan, Gregory (US SSA)" <gregory.sullivan@baesystems.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: changing face (color) on tags-todo agenda headlines
Date: Tue, 8 Dec 2009 11:46:25 -0500 [thread overview]
Message-ID: <814i1h$4jdn8r@dmzms99801.na.baesystems.com> (raw)
I'd like to process agenda headlines and apply face (color) to ones with given tags.
It seems like I should add a function to org-finalize-agenda-hook. When that hook is invoked, how do I iterate over agenda headlines?
I thought I could use org-map-entries, on the current buffer, as follows:
(add-hook 'org-finalize-agenda-hook
(lambda ()
(message "starting agenda-hook")
(org-map-entries
'(message "hi")
"+highlight" nil)))
But I never get "hi" despite there being agenda items with the "highlight" tag.
Any help would be much appreciated.
Thanks!
--Greg
--
Gregory T. Sullivan, Ph.D.
BAE Systems Advanced Information Technologies
6 New England Executive Park, Burlington, MA 01803
781-262-4553 (office), 978-430-3461 (cell)
gregory.sullivan@baesystems.com
next reply other threads:[~2009-12-08 16:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-08 16:46 Sullivan, Gregory (US SSA) [this message]
2009-12-09 10:08 ` changing face (color) on tags-todo agenda headlines Carsten Dominik
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='814i1h$4jdn8r@dmzms99801.na.baesystems.com' \
--to=gregory.sullivan@baesystems.com \
--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).