Article View: news.software.readers
Article #192781Re: [slrn] configuration by group
From: Troy Piggins
Date: Mon, 20 Nov 2006 21:19
Date: Mon, 20 Nov 2006 21:19
43 lines
2337 bytes
2337 bytes
* Elden Fenison wrote:
> Greetings, I would like to be able to configure slrn to use a different
> sort method depending on what group I happen to load. I know the slrnrc
> has the #IF directive, but I've not been able to find any usage
> examples. Any ideas?
I think you're barking up the wrong tree there mate. Should look
into using a macro like this:
define make_group_specific_settings ()
{
variable cgp = current_newsgroup ();
variable sm;
switch ( cgp)
{ ( is_substr (cgp, "alt.games")) :
sm = 1;
}
{ ( is_substr (cgp, "news.software.readers")) :
sm = 2;
}
{ ( is_substr (cgp, "alt.ascii-art")) :
sm = 3;
}
{
sm = 4;
}
set_integer_variable ("sorting_method", sm);
}
() = register_hook ("article_mode_hook", "make_group_specific_settings");
Put the above in a file called whatever, and add a line like this
in your ~/.slrnrc
interpret ~/filename
--
Troy Piggins ,-O (o- O
O ) //\ O
`-O V_/_ OOO
RLU#415538
Technical Details
Message-ID:
<20061121070907@usenet.piggo.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!newsfeed.news2me.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp4.phx1!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mailReferences:
<slrnem3rk0.6pg.usenet@imac.moondog.org>Show Full Headers
Complete Article Headers
Message-ID: <20061121070907@usenet.piggo.com> Subject: Re: [slrn] configuration by group Date: Tue, 21 Nov 2006 07:19:17 +1000 From: Troy Piggins <usenet-0611@piggo.com> References: <slrnem3rk0.6pg.usenet@imac.moondog.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!newsfeed.news2me.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp4.phx1!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail Newsgroups: news.software.readers Reply-To: usenet-0611@piggo.com User-Agent: slrn/0.9.8.1pl1/rt (Linux) Lines: 43 NNTP-Posting-Host: 203.206.60.205 X-Trace: 1164057602 per-qv1-newsreader-01.iinet.net.au 1623 203.206.60.205