emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: feature-request: colorize diary entries in agenda
Date: Mon, 04 Jan 2010 15:57:47 +0100	[thread overview]
Message-ID: <87bph9dij8.fsf@tux.homenetwork> (raw)
In-Reply-To: <5123B850-2A12-43EA-81C0-180C1621C506@gmail.com> (Carsten Dominik's message of "Mon, 4 Jan 2010 15:36:22 +0100")

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

  reply	other threads:[~2010-01-04 15:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2010-01-04 15:06     ` Carsten Dominik
2010-01-04 15:31       ` Thierry Volpiatto

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=87bph9dij8.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=carsten.dominik@gmail.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).