From: Greg Minshall <minshall@umich.edu>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: emacs: keybindings in notmuch-show for copying the target of a link for a text/html part? (M-x shr-copy-url)
Date: Mon, 30 Jan 2023 18:00:36 +0300 [thread overview]
Message-ID: <2181436.1675090836@archlinux> (raw)
In-Reply-To: <2089268.1674828328@archlinux>
Daniel,
too late, i realized that my suggestion of link-hint isn't exactly a
match, as it is "missing" a "link-hint-display-hint" (or some such)
function.
i just now suggested such a function, but the below, which is *not*
fully formed, might occasionally be helpful if you do install link-hint
(which i also find very useful in daily use).
cheers, Greg
----
(defun link-hint-display-link ()
"Display a visible link of a supported type."
(interactive)
(require 'link-hint)
(avy-with link-hint-display-link
(let* ((link-hint-types (link-hint--valid-types :copy))
(links (link-hint--get-links))
link)
(when links
(setq link (link-hint--process links))
(when link
(message (format "link: %s" (plist-get link ':args))))))))
----
prev parent reply other threads:[~2023-01-30 15:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-26 20:52 emacs: keybindings in notmuch-show for copying the target of a link for a text/html part? (M-x shr-copy-url) Daniel Kahn Gillmor
2023-01-27 11:42 ` David Bremner
2023-01-27 13:33 ` Gregor Zattler
2023-01-27 14:05 ` Greg Minshall
2023-01-28 11:02 ` inwit
2023-01-30 15:00 ` Greg Minshall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2181436.1675090836@archlinux \
--to=minshall@umich.edu \
--cc=dkg@fifthhorseman.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).