[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying images in nnrss feeds

From: Katsumi Yamaoka
Subject: Re: Displaying images in nnrss feeds
Date: Fri, 11 May 2007 19:56:10 +0900
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

>>>>> In <> Peter Russell wrote:

> I've added the RSS feed for, which is always a
> pretty interesting read, and I'm impressed by how well it works.  Some
> of the posts on the feed have "hackergotchis", images of the poster
> which are attached to posts.  These appear in Gnus as text like this:

> [jdub]

> And when I put the point over them, and press enter the images are
> downloaded and displayed inline.

You've set `mm-text-html-renderer' to `w3m'.  Right?

> Is it possible to make these images display by default?  I can't find
> any option to do this.

> I'd really like all images in posts to be displayed by default, but
> it's the hackergotchis I care more about.

There is a way to do that if you use emacs-w3m.  Try putting the
following forms in your ~/.gnus.el file:

--8<---------------cut here---------------start------------->8---
;; Set the default values of `mm-w3m-safe-url-regexp'
;; and `mm-inline-text-html-with-images'.
(eval-after-load "gnus-sum"
     (add-to-list 'gnus-newsgroup-variables
                  '(mm-w3m-safe-url-regexp . "\\`cid:"))
     (add-to-list 'gnus-newsgroup-variables
                  '(mm-inline-text-html-with-images . nil))))

;; Display images inline in `nnrss' groups.
(add-to-list 'gnus-parameters
               (mm-inline-text-html-with-images t)
               (mm-w3m-safe-url-regexp nil)))
--8<---------------cut here---------------end--------------->8---

You can find a similar example in the Gnus manual:

(info "(gnus)RSS") <- Type `C-x C-e' here.

The Emacs MIME manual will be helpful as well:

(info "(emacs-mime)Display Customization")


reply via email to

[Prev in Thread] Current Thread [Next in Thread]