emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: feature-request: colorize diary entries in agenda


From: Thierry Volpiatto
Subject: [Orgmode] Re: feature-request: colorize diary entries in agenda
Date: Mon, 04 Jan 2010 16:31:35 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.91 (gnu/linux)

Carsten Dominik <address@hidden> writes:

> On Jan 4, 2010, at 3:57 PM, Thierry Volpiatto wrote:
>
>> Hi Carsten,
>>
>> Carsten Dominik <address@hidden> 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.
>>>> address@hidden
>>>> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France





reply via email to

[Prev in Thread] Current Thread [Next in Thread]