Gnus development mailing list
 help / color / mirror / Atom feed
* Formatting summary line of '#' marked messages
@ 2007-05-10 11:46 Norman Walsh
  2007-05-10 12:23 ` Katsumi Yamaoka
  0 siblings, 1 reply; 3+ messages in thread
From: Norman Walsh @ 2007-05-10 11:46 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

As long as I'm asking for clues, I've been wanting to change the
formatting of lines marked with '#' for a while now. I'd like to give
them a more distinctive face since I most often use them for marking a
bunch of spam to kill.

Alas, I got hopelessly lost attempting to decipher the various summary
mode line variables.

Clue, please?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | We measure the excellency of other men,
http://nwalsh.com/            | by some excellency we conceive to be in
                              | ourselves.--John Selden

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

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

* Re: Formatting summary line of '#' marked messages
  2007-05-10 11:46 Formatting summary line of '#' marked messages Norman Walsh
@ 2007-05-10 12:23 ` Katsumi Yamaoka
  2007-05-11  7:25   ` Katsumi Yamaoka
  0 siblings, 1 reply; 3+ messages in thread
From: Katsumi Yamaoka @ 2007-05-10 12:23 UTC (permalink / raw)
  To: Norman Walsh; +Cc: ding

>>>>> In <87wszg7vfg.fsf@nwalsh.com> Norman Walsh wrote:

> As long as I'm asking for clues, I've been wanting to change the
> formatting of lines marked with '#' for a while now. I'd like to give
> them a more distinctive face since I most often use them for marking a
> bunch of spam to kill.

> Alas, I got hopelessly lost attempting to decipher the various summary
> mode line variables.

> Clue, please?

Currently there seems to be no option for that.  Here is a
workaround instead:

--8<---------------cut here---------------start------------->8---
(eval-after-load "gnus-sum"
  '(add-hook 'gnus-summary-update-hook
	     (lambda nil
	       (if (memq (gnus-summary-article-number)
			 gnus-newsgroup-processable)
		   (let ((inhibit-read-only t))
		     (put-text-property
		      (point-at-bol) (point-at-eol)
		      'face 'gnus-summary-high-read))))
	     'append))
--8<---------------cut here---------------end--------------->8---

Regards,



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

* Re: Formatting summary line of '#' marked messages
  2007-05-10 12:23 ` Katsumi Yamaoka
@ 2007-05-11  7:25   ` Katsumi Yamaoka
  0 siblings, 0 replies; 3+ messages in thread
From: Katsumi Yamaoka @ 2007-05-11  7:25 UTC (permalink / raw)
  To: Norman Walsh; +Cc: ding

>>>>> In <b4mejloq33y.fsf@jpl.org> Katsumi Yamaoka wrote:
>>>>>> In <87wszg7vfg.fsf@nwalsh.com> Norman Walsh wrote:

>> As long as I'm asking for clues, I've been wanting to change the
>> formatting of lines marked with '#' for a while now. I'd like to give
>> them a more distinctive face since I most often use them for marking a
>> bunch of spam to kill.

>> Alas, I got hopelessly lost attempting to decipher the various summary
>> mode line variables.

>> Clue, please?

> Currently there seems to be no option for that.

I failed to notice Gnus offers the means just for that purpose.

,----
| `gnus-summary-highlight'
|      Summary lines are highlighted according to this variable, which is
|      a list where the elements are of the format `(FORM . FACE)'.  If
|      you would, for instance, like ticked articles to be italic and
|      high-scored articles to be bold, you could set this variable to
|      something like
|           (((eq mark gnus-ticked-mark) . italic)
|            ((> score default) . bold))
|      As you may have guessed, if FORM returns a non-`nil' value, FACE
|      will be applied to the line.
`----

The following snippet makes Gnus highlight # marked summary lines.

--8<---------------cut here---------------start------------->8---
(eval-after-load "gnus-sum"
  '(add-to-list
    'gnus-summary-highlight
    '((memq article gnus-newsgroup-processable)
      . gnus-summary-high-read)))
--8<---------------cut here---------------end--------------->8---

You can use any other faces other than `gnus-summary-high-read'
as you like.  Or should we provide the `gnus-summary-processable'
face and make `gnus-summary-high-read' have it by default?

Regards,



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

end of thread, other threads:[~2007-05-11  7:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-10 11:46 Formatting summary line of '#' marked messages Norman Walsh
2007-05-10 12:23 ` Katsumi Yamaoka
2007-05-11  7:25   ` Katsumi Yamaoka

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 NNTP newsgroup(s).