[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Binding of RET in gnus when upon a hyperlink that contains "http://..."
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Wed, 25 Dec 2013 16:02:50 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 12267
- References: <87wqito5mx.fsf@xxxxxxxxxxx>
In [emacs-w3m : No.12266] jidanni@xxxxxxxxxxx wrote:
> In the following HTML mail,
> regarding the binding of RET,
> when I put the cursor upon a hyperlink that is "some words", it is
> RET runs the command w3m-safe-view-this-url, GOOD!
> when I put the cursor upon a hyperlink that is "http://someurl", it is
> RET runs the command widget-button-press, BAD!
> How do I make it
> RET runs the command w3m-safe-view-this-url, GOOD!
> ?
The most easy way would be:
(add-hook
'gnus-article-mode-hook
(lambda ()
(set (make-variable-buffer-local 'browse-url-browser-function)
#'w3m-browse-url)))
Note that you once have to kill the article buffer in advance if
you try evaluating this form when you are already running Gnus.