Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Enila Nero <geortal@yahoo.com>
Subject: Re: Choices for mm-text-html-renderer
Date: Sun, 13 Feb 2005 06:58:42 GMT	[thread overview]
Message-ID: <uy8dtymho.fsf@yahoo.com> (raw)
In-Reply-To: <u4qgh11la.fsf@yahoo.com>

Enila Nero <geortal@yahoo.com> writes:

> I would like to use 
>
> (setq  mm-text-html-renderer 'w3)
>
> for most groups and 
>
> (setq mm-text-html-renderer 'w3m)
>
> for some others.  I tried customization using gnus-parameters but it
> doesn't work:  the new value of mm-text-html-renderer is local only
> for the summary buffer; no change in the article buffer.
>
> Any ideas how to achieve that?
>
> Thanks,
>
> EN

Answering my own question:

(defun my-html-renderer ()
  (if (string-match  "spam\\|junk" gnus-newsgroup-name)
      (set (make-local-variable 'mm-text-html-renderer) 'w3m)))

(add-hook 'gnus-article-prepare-hook 'my-html-renderer)

EN


      reply	other threads:[~2005-02-13  6:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-13  5:16 Enila Nero
2005-02-13  6:58 ` Enila Nero [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=uy8dtymho.fsf@yahoo.com \
    --to=geortal@yahoo.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).