Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: lance <lance@mail.augustmail.com>
Subject: Group Highlighting ?
Date: Fri, 08 Jul 2005 09:15:38 -0500	[thread overview]
Message-ID: <87fyupbcz9.fsf@mail.augustmail.com> (raw)




In the INFO I came across this little snippit but it is difficult for this mere mortal
to understand.  The first line is easy enough.  Correct me if I am wrong but the second
line indicates that if the (level is < 3 and 0 unread articles).  Line 3 is Level < 3, line
4 is 0 unread articles, line 5 all others get my-group-face-5?  I want to add a line to this
that says if the group name includes "Listserv" make the color "my-group-face-4".  
How do I do this?

Lance


; HIGHLIGHTING GROUPS
     (cond (window-system
            (setq custom-background-mode 'light)
            (defface my-group-face-1 '((t (:foreground "Red" :bold t))) "First group face")
            (defface my-group-face-2 '((t (:foreground "DarkSeaGreen4" :bold t)))   "Second group face")
            (defface my-group-face-3 '((t (:foreground "Green4" :bold t))) "Third group face")
            (defface my-group-face-4 '((t (:foreground "SteelBlue" :bold t))) "Fourth group face")
            (defface my-group-face-5 '((t (:foreground "Blue" :bold t))) "Fifth group face")))

     (setq gnus-group-highlight
           '(((> unread 200) . my-group-face-1) 
             ((and (< level 3) (zerop unread)) . my-group-face-2)
             ((< level 3) . my-group-face-3)
             ((zerop unread) . my-group-face-4)
             (t . my-group-face-5))

     )


-- 

                                Lance Hoffmeyer
                              lance@augustmail.com

-------------------------------------------------------------------------------
          The natural progress of things is for liberty to yield and
                          governments to gain ground.
                                       -
                                Thomas Jefferson


             reply	other threads:[~2005-07-08 14:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-08 14:15 lance [this message]
2005-07-08 18:45 ` Johan Bockgård

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fyupbcz9.fsf@mail.augustmail.com \
    --to=lance@mail.augustmail.com \
    /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.
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).