help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: copy a link + hyperlink & text


From: Alex Kost
Subject: Re: copy a link + hyperlink & text
Date: Fri, 03 Jun 2016 21:55:02 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Sharon Kimble (2016-06-03 21:27 +0300) wrote:

> How can I copy a link with the text and the hyperlink all at once from
> either emacs w3m or from gnus please? Preferably all with one keypress?
> It will be pasted into a org-mode document as its destination.

I think for both gnus and w3m the default key binding is "u" (when the
point is placed on a link).  I prefer to use "c" key, so I bind it like
this:

(with-eval-after-load 'gnus-art
  (define-key gnus-article-mode-map (kbd "c") 'gnus-article-copy-string))

(with-eval-after-load 'w3m
  (define-key w3m-mode-map (kbd "c") 'w3m-print-current-url))

-- 
Alex



reply via email to

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