Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Choices for mm-text-html-renderer
@ 2005-02-13  5:16 Enila Nero
  2005-02-13  6:58 ` Enila Nero
  0 siblings, 1 reply; 2+ messages in thread
From: Enila Nero @ 2005-02-13  5:16 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Choices for mm-text-html-renderer
  2005-02-13  5:16 Choices for mm-text-html-renderer Enila Nero
@ 2005-02-13  6:58 ` Enila Nero
  0 siblings, 0 replies; 2+ messages in thread
From: Enila Nero @ 2005-02-13  6:58 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-13  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-13  5:16 Choices for mm-text-html-renderer Enila Nero
2005-02-13  6:58 ` Enila Nero

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).