>>>>> Hadron wrote:

> Thanks, but is it possible for this function to also work for real
> "visible" links e.g

> "follow this link : http://www.bbc.co.com"; ?

That function can be used in only areas that are rendered by
emacs-w3m in the article buffer.  There the `w3m-minor-mode-map'
keymap lives and it hides the `gnus-article-mode-map' keymap.
For such a link expressed with a plain text, you can bind the
same key to just the function `browse-url-firefox'.  For example:

(eval-after-load "gnus-art"
  '(progn
     (define-key gnus-article-mode-map "v" (make-sparse-keymap))
     (define-key gnus-article-mode-map "vv" 'browse-url-firefox)))

If you want to add other commands, say:

(eval-after-load "gnus-art"
  '(progn
     (define-key gnus-article-mode-map "v" (make-sparse-keymap))
     (define-key gnus-article-mode-map "vv" 'browse-url-firefox)
     (define-key gnus-article-mode-map "vx" 'foo)
     (define-key gnus-article-mode-map "vy" 'bar)
     (define-key gnus-article-mode-map "vz" 'baz)))

> Also, whats the "vv" key? If I hit v, it invokes the usual w3m-bookmark
> with the first v.

You seem to have typed the v key in a normal emacs-w3m buffer.
There the `w3m-mode-mep' keymap lives.
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to