| Re: linking "article washing" script to menu and keyboard shortcut |
|
 |
|
 |
|
 |
|
 |
Group: gnu.emacs.gnus · Group Profile
Author: Andrzej Adam FilipAndrzej Adam Filip Date: Aug 30, 2008 09:19
Tassilo Horn member.fsf.org> wrote:
> Andrzej Adam Filip writes:
>> Could you recommend short "HOW TO" about linking specific external
>> article washing script to emacs/gnus menus?
>
> Something like this should work:
>
> --8<---------------cut here---------------start------------->8---
> (defun th-gnus-summary-pipe-message-through-foo ()
> (interactive)
> (gnus-summary-pipe-message "foo"))
>
> (define-key gnus-summary-mode-map (kbd "C-c p")
> 'th-gnus-summary-pipe-message-through-foo)
> --8<---------------cut here---------------end--------------->8---
>
> Simply replace foo with your script.
1) Thanks, it delivers the gnus/emacs hook
*exactly as originally requested* :-)
2) *Now*, I would like also to be able to filter/fix "Subject:"
header in the script :-)
--
[pl>en Andrew] Andrzej Adam Filip : anfi@onet.eu : anfi@xl.wp.pl
"Don't fear the pen. When in doubt, draw a pretty picture."
-- Baker's Third Law of Design.
|