Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* gnus-group-highlight
@ 2007-08-27 13:53 Richard G Riley
  0 siblings, 0 replies; only message in thread
From: Richard G Riley @ 2007-08-27 13:53 UTC (permalink / raw)
  To: info-gnus-english


I have recently started to try and customise Gnus.

I wish my group listing to look a little more informative so I did this
simple gnus-group-highlight alist as a first attempt.

(setq gnus-group-highlight
      '(
;;	((> unread 0) . my-group-face-unread)
	((and (string-match "inbox" group) (> unread 0)) . my-group-face-personal-unread)
	((string-match "inbox" group)  . my-group-face-personal)
	((and (or nil mailp) (> unread 0)) . my-group-face-mail-unread)
	((or nil mailp)  . my-group-face-mail)
	((> unread 0) . my-group-face-default-unread)
	(t . my-group-face-default)
))

The question I have is this - can it be simplified? Here I have two
faces per "group type"  -normal and a "bold" if there are unread
messages. This means double the "face" declarations.

How could I just make all groups with unread messages a "Bolder" version
of the face that I apply to that group based on type or or name?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-27 13:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-27 13:53 gnus-group-highlight Richard G Riley

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).