From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Volpiatto Subject: Re: feature-request: colorize diary entries in agenda Date: Mon, 04 Jan 2010 16:31:35 +0100 Message-ID: <877hrxdgyw.fsf@tux.homenetwork> References: <873a3avtnt.fsf@tux.homenetwork> <5123B850-2A12-43EA-81C0-180C1621C506@gmail.com> <87bph9dij8.fsf@tux.homenetwork> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NRp0C-0002Ud-2m for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 10:37:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NRp07-0002Pl-C9 for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 10:37:51 -0500 Received: from [199.232.76.173] (port=59079 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRp07-0002PY-0n for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 10:37:47 -0500 Received: from mx20.gnu.org ([199.232.41.8]:47180) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NRozu-0003XZ-Eq for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 10:37:46 -0500 Received: from lo.gmane.org ([80.91.229.12]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NRozo-0006q1-7c for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 10:37:28 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NRozZ-0008V4-2C for emacs-orgmode@gnu.org; Mon, 04 Jan 2010 16:37:13 +0100 Received: from 85.77.197-77.rev.gaoland.net ([77.197.77.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jan 2010 16:37:13 +0100 Received: from thierry.volpiatto by 85.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jan 2010 16:37:13 +0100 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: emacs-orgmode@gnu.org Carsten Dominik writes: > On Jan 4, 2010, at 3:57 PM, Thierry Volpiatto wrote: > >> Hi Carsten, >> >> Carsten Dominik writes: >> >>> Hi Thierry, >>> >>> there is now a new face, org-agenda-diary, for this purpose. >> >> Nice, thank you, i will have a look. >> How do you enable it? > > > It is already implemented - all you need to do is to customize the > face - right now all it does is inheriting from `default'. > > The code you show below is no longer needed. Great, thank you. ;-) > - Carsten > >> I use that actually: >> >> ,---- >> | (defun tv-org-propertize-diary-entries () >> | (save-excursion >> | (let ((inhibit-read-only t)) >> | (goto-char (point-min)) >> | (while >> | (re-search-forward "^ *[Dd]iary" nil t) >> | (add-text-properties >> | (point-at-bol) (point-at-eol) '(face tv-org-diary)))))) >> | (add-hook 'org-finalize-agenda-hook 'tv-org-propertize-diary- >> entries) >> `---- >> >>> HTH >>> >>> - Carsten >>> >>> 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? >>>> -- >>>> A + Thierry Volpiatto >>>> Location: Saint-Cyr-Sur-Mer - France >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> Emacs-orgmode mailing list >>>> Please use `Reply All' to send replies to the list. >>>> Emacs-orgmode@gnu.org >>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>> >>> - Carsten >>> >>> >>> >> >> -- >> A + Thierry Volpiatto >> Location: Saint-Cyr-Sur-Mer - France > > - Carsten > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France