From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: feature-request: colorize diary entries in agenda Date: Thu, 17 Dec 2009 20:23:38 +0100 Message-ID: <6BEE55E3-6F64-463F-840A-F23AAF93A570@gmail.com> References: <873a3avtnt.fsf@tux.homenetwork> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLPQX-0001X7-08 for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 18:06:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLPQS-0001V0-9y for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 18:06:32 -0500 Received: from [199.232.76.173] (port=33705 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLPQS-0001Uv-55 for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 18:06:28 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:64874) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLPQR-0000tY-OC for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 18:06:27 -0500 Received: by mail-ew0-f224.google.com with SMTP id 24so2854211ewy.26 for ; Thu, 17 Dec 2009 15:06:27 -0800 (PST) In-Reply-To: <873a3avtnt.fsf@tux.homenetwork> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thierry Volpiatto Cc: emacs-orgmode@gnu.org On Dec 17, 2009, at 10:25 AM, Thierry Volpiatto wrote: > Hi, should be great to be able to colorize diary entries in agenda. > I didn't find customisation for that apart modifying: > ,---- > | (defun org-get-entries-from-diary (date) > | "Get the (Emacs Calendar) diary entries for DATE." > | > | [...] > | > | (org-add-props x (text-properties-at (1- (length x)) x) > | 'type "diary" 'date date 'face 'tv-org-diary)) > | entries))))) > `---- > Did i miss something? Hmm, maybe that is overwritten later by Org? Quite possible. But you code *looks* ok. I will work better if you put a function into org-finalize-agenda-hook that will search for entries with the right category and add the face then. - Carsten