[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: howto define dynamic color with gnus-summary-line-format
From: |
Bastien |
Subject: |
Re: howto define dynamic color with gnus-summary-line-format |
Date: |
Tue, 19 Feb 2008 03:53:05 +0000 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) |
haomiao <miaohaoz@ustc.edu> writes:
> I want gnus can display different color according to some
> dynamic condition in my summary buffer,
> for example
> if date of mail is today, then the date color is red
> else the date color is blue
> How can I get that effect, by setting gnus-summary-line-format
> or something else?
Yes.
(info "(gnus)Group Line Specification")
,----
| `u'
| User defined specifier. The next character in the format string
| should be a letter. Gnus will call the function
| `gnus-user-format-function-'`X', where `X' is the letter following
| `%u'. The function will be passed a single dummy parameter as
| argument. The function should return a string, which will be
| inserted into the buffer just like information from any other
| specifier.
`----
I guess you will have to write your own specifier so that it changes the
face for the date in the summary line.
--
Bastien
- howto define dynamic color with gnus-summary-line-format, haomiao, 2008/02/18
- Re: howto define dynamic color with gnus-summary-line-format,
Bastien <=
- Message not available
- Re: howto define dynamic color with gnus-summary-line-format, haomiao, 2008/02/19
- Re: howto define dynamic color with gnus-summary-line-format, Bastien, 2008/02/20
- Message not available
- Re: howto define dynamic color with gnus-summary-line-format, haomiao, 2008/02/20
- Re: howto define dynamic color with gnus-summary-line-format, Bastien, 2008/02/25
- Re: howto define dynamic color with gnus-summary-line-format, Johan Bockgård, 2008/02/25
- Re: howto define dynamic color with gnus-summary-line-format, Bastien, 2008/02/25