all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* feature-request: colorize diary entries in agenda
@ 2009-12-17  9:25 Thierry Volpiatto
  2009-12-17 19:23 ` Carsten Dominik
  2010-01-04 14:36 ` Carsten Dominik
  0 siblings, 2 replies; 6+ messages in thread
From: Thierry Volpiatto @ 2009-12-17  9:25 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: feature-request: colorize diary entries in agenda
  2009-12-17  9:25 feature-request: colorize diary entries in agenda Thierry Volpiatto
@ 2009-12-17 19:23 ` Carsten Dominik
  2010-01-04 14:36 ` Carsten Dominik
  1 sibling, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2009-12-17 19:23 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: feature-request: colorize diary entries in agenda
  2009-12-17  9:25 feature-request: colorize diary entries in agenda Thierry Volpiatto
  2009-12-17 19:23 ` Carsten Dominik
@ 2010-01-04 14:36 ` Carsten Dominik
  2010-01-04 14:57   ` Thierry Volpiatto
  1 sibling, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2010-01-04 14:36 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: emacs-orgmode

Hi Thierry,

there is now a new face, org-agenda-diary, for this purpose.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: feature-request: colorize diary entries in agenda
  2010-01-04 14:36 ` Carsten Dominik
@ 2010-01-04 14:57   ` Thierry Volpiatto
  2010-01-04 15:06     ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Thierry Volpiatto @ 2010-01-04 14:57 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Hi Carsten,

Carsten Dominik <carsten.dominik@gmail.com> 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?
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: feature-request: colorize diary entries in agenda
  2010-01-04 14:57   ` Thierry Volpiatto
@ 2010-01-04 15:06     ` Carsten Dominik
  2010-01-04 15:31       ` Thierry Volpiatto
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2010-01-04 15:06 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: emacs-orgmode


On Jan 4, 2010, at 3:57 PM, Thierry Volpiatto wrote:

> Hi Carsten,
>
> Carsten Dominik <carsten.dominik@gmail.com> 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.

- 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: feature-request: colorize diary entries in agenda
  2010-01-04 15:06     ` Carsten Dominik
@ 2010-01-04 15:31       ` Thierry Volpiatto
  0 siblings, 0 replies; 6+ messages in thread
From: Thierry Volpiatto @ 2010-01-04 15:31 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

> On Jan 4, 2010, at 3:57 PM, Thierry Volpiatto wrote:
>
>> Hi Carsten,
>>
>> Carsten Dominik <carsten.dominik@gmail.com> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-01-04 15:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-17  9:25 feature-request: colorize diary entries in agenda Thierry Volpiatto
2009-12-17 19:23 ` Carsten Dominik
2010-01-04 14:36 ` Carsten Dominik
2010-01-04 14:57   ` Thierry Volpiatto
2010-01-04 15:06     ` Carsten Dominik
2010-01-04 15:31       ` Thierry Volpiatto

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.