[Top][All Lists]

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

Re: specific coloring of diary calendar entries

From: Ami Fischman
Subject: Re: specific coloring of diary calendar entries
Date: Thu, 12 Dec 2002 10:56:01 -0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.50 (i686-pc-linux-gnu)

I made one more change to the file-name-prefixing of diary entries using a
defcustom to define a "transformation function."  I now have in my .emacs:
(setq diary-file-name-prefix-function (function (lambda (str) 
(replace-in-string str (substitute-in-file-name "$HOME/.diary\.?") ""))) 
(setq diary-file-name-prefix t)

and with the patch below, this yields no prefix for entries from ~/.diary,
and a "[birthdays] " prefix for entries from my ~/.diary.birthdays file.

The default for diary-file-name-prefix is still nil, since if a person
doesn't know enough to define diary-file-name-prefix-function, s/he
probably doesn't want the prefixes in the first place.

  Ami Fischman

Attachment: col-cal.patch
Description: Text Data

Attachment: col-dia.patch
Description: Text Data

reply via email to

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