Gnus development mailing list
 help / color / mirror / Atom feed
From: Karl Kleinpaste <karl@charcoal.com>
Subject: Re: setting group properties based on group name and regexp
Date: 24 May 2000 15:45:25 -0400	[thread overview]
Message-ID: <vxkln0zlokq.fsf@mesquite.charcoal.com> (raw)
In-Reply-To: Dave Cohen's message of "24 May 2000 12:33:00 -0400"

Dave Cohen <dnc@bigfoot.com> writes:
> Is it possible in my .gnus to set group properties based on the group
> name?

This is (part of) what I use.

(setq gnus-select-group-hook
      (function
       (lambda ()
	 (cond ((string-match "clari." gnus-newsgroup-name)
		(setq gnus-summary-line-format "%U%R%z%I%(%[%4L: %-6,6n%]%)   %s\n"))
	       ((string-match "comp.sources" gnus-newsgroup-name)
		(setq gnus-summary-line-format "%U%R%z%I%(%[%4L%]%)   %s\n"))
	       ((string-match "nnir:\\|nnml:[alpu]" gnus-newsgroup-name)
		(setq gnus-summary-line-format "%U%R%z %d %I%(%[%4L: %-20,20f%]%) %s\n"))
	       (t
		(setq gnus-summary-line-format "%U%R%z%I%(%[%4L: %-20,20f%]%) %s\n")))
	 (setq gnus-summary-mode-line-format
	       (if (string-match "nnir:" gnus-newsgroup-name)
		   "Gnus: %G [%A] %Z" "Gnus: %g [%A] %Z"))
	 )))

--karl



      reply	other threads:[~2000-05-24 19:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-24 16:33 Dave Cohen
2000-05-24 19:45 ` Karl Kleinpaste [this message]

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=vxkln0zlokq.fsf@mesquite.charcoal.com \
    --to=karl@charcoal.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).