info-gnus-english
[Top][All Lists]
Advanced

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

Re: How to copy URL's to clipboard?


From: Katsumi Yamaoka
Subject: Re: How to copy URL's to clipboard?
Date: Fri, 13 Jul 2007 08:24:15 +0900
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

>>>>> 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.


reply via email to

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