Article View: news.software.readers
Article #30727Re: Pick a text renderer, any text renderer
From: Steve Lamb
Date: Tue, 04 Feb 1997 00:00
Date: Tue, 04 Feb 1997 00:00
70 lines
3691 bytes
3691 bytes
On 03 Feb 1997 17:42:49 -0500, Karl Kleinpaste <karl@jprc.com> wrote:
> (setq gnus-select-group-hook
> (function
> (lambda ()
> (if (or (string-match "talk.abortion" gnus-newsgroup-name))
> (error "%s? be serious." gnus-newsgroup-name))
> ;; Ignore From: in summary for certain groups.
> (cond ((or (string-match "clari." gnus-newsgroup-name))
> (setq gnus-summary-line-format
> "%U%R%z%I%(%[%4L: %-6,6n%]%) %s\n"))
> ((or (string-match "comp.sources" gnus-newsgroup-name)
> (string-match "dow-jones" gnus-newsgroup-name)
> (string-match "comp.internet.net-happening" gnus-newsgroup-name))
> (setq gnus-summary-line-format
> "%U%R%z%I%(%[%4L%]%) %s\n"))
> (t
> (setq gnus-summary-line-format
> "%U%R%z%I%(%[%4L: %-20,20n%]%) %s\n")))
> )))
>For those who don't read elisp, the effect of the above statement is
>to specify that, on selection of any given group, the variable
>gnus-summary-line-format, which determines placement of author/
>subject/line-count/been-read/&c status, is altered according to the
>newsgroup name pattern. In most groups, I use default displays in the
>summary. In clari.*, I give more room to subject and less to author,
>because at most what I can learn from a clari.* From: is the article's
>wire service origin. In a couple groups, I lose the author entirely.
And to just provide a little more weight to what you're saying here, a
slice from my slang file for slrn.
define article_mode_hook ()
{
variable sorting_method = 7;
variable author_display = 2;
variable signature_file = ".signature";
if (is_substr (current_newsgroup (), "announce"))
{
sorting_method = 3;
author_display = 0;
}
if (is_substr (current_newsgroup (), "netrek"))
signature_file = ".signature-netrek";
set_integer_variable ("sorting_method", sorting_method);
set_integer_variable ("author_display", author_display);
set_string_variable ("signature", signature_file);
}
For those that don't read slang this block adjusts the author display
according to what the newsgroup is. In any announce newsgroup I don't have
an author display at all, all I care about is what was posted. In
rec.games.netrek I get a new signature which displays which INL team I'm on
instead of the standard work .sig which tells people where to get my PGP
info. In general, the same as what your elisp does above. And just like
your elisp, it is in use today, right now.
--
- - - ---===+{ }+===--- - - -
Steve C. Lamb
"Do you know where friendship ends and passion does begin?
It's between the bindings of her stockings and her skin"
-- Suzanne Vega, "Stockings"
Technical Details
Message-ID:
<slrn5fd3d9.vd.morpheus@destiny.calweb.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.mbox.zip!not-for-mailReferences:
<5cpvo7$3ov@fugue.clari.net> <vxkbua7cdki.fsf@pocari-sweat.jprc.com> <5cqtb6$fcf@fugue.clari.net> <vxkzpxl8qae.fsf_-_@pocari-sweat.jprc.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn5fd3d9.vd.morpheus@destiny.calweb.com> Subject: Re: Pick a text renderer, any text renderer Date: Tue, 04 Feb 1997 00:00:00 +0000 From: morpheus@calweb.com (Steve Lamb) References: <5cpvo7$3ov@fugue.clari.net> <vxkbua7cdki.fsf@pocari-sweat.jprc.com> <5cqtb6$fcf@fugue.clari.net> <vxkzpxl8qae.fsf_-_@pocari-sweat.jprc.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.mbox.zip!not-for-mail X-Deja-AN: 214257687 Organization: We're organized?! Reply-to: morpheus@calweb.com Newsgroups: news.software.readers