From: Alberto Luaces <aluaces@udc.es>
To: ding@gnus.org
Subject: Re: Using gnus-gravatar.el with emacs 23
Date: Wed, 22 Dec 2010 13:27:49 +0100 [thread overview]
Message-ID: <871v5a6lh6.fsf@eps142.cdf.udc.es> (raw)
In-Reply-To: <87ipymyphq.fsf@member.fsf.org>
Tassilo Horn writes:
> Alberto Luaces writes:
>
> Hi Alberto,
>
>> I'm trying to use gnus-gravatar.el with emacs 23.2 and its gnus
>> 5.13. I load succesfully gravatar.el and gnus-gravatar.el, so when
>> viewing an article I can do a `M-x gnus-treat-from-gravatar' and see
>> the icons.
>>
>> When I try gnus to do this automatically every time I read a new article
>> with
>>
>> (add-to-list 'gnus-treatment-function-alist '(t gnus-treat-from-gravatar))
>
> I think you should not modify that variable. It's no custom option and
> has no documentation, so it's most probably not intended for users.
>
I thought something like this, but I was desperate :)
>
> To do what you want, I use:
>
> ,----
> | (require 'gnus-gravatar)
> | (defun th-gnus-article-prepared ()
> | (gnus-treat-from-gravatar)
> | (gnus-treat-mail-gravatar))
> |
> | (add-hook 'gnus-article-prepare-hook 'th-gnus-article-prepared)
> `----
Works like a charm, thank you very much.
--
Alberto
prev parent reply other threads:[~2010-12-22 12:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-22 12:00 Alberto Luaces
2010-12-22 12:13 ` Tassilo Horn
2010-12-22 12:27 ` Alberto Luaces [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=871v5a6lh6.fsf@eps142.cdf.udc.es \
--to=aluaces@udc.es \
--cc=ding@gnus.org \
/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).