emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] message:// links


From: Nicolas Goaziou
Subject: Re: [O] message:// links
Date: Sat, 10 Nov 2018 08:28:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello,

Jean-Christophe Helary <address@hidden> writes:

> I'm pasting a message:// link into an org-mode file but it fails to be
> recognized as a link that should open in a mail client.
>
> What is a simple way to have org-mode recognize such links ?

One simple way is to define "message:" as an alias for "mailto:";, which
is the Org syntax for such links.  This is done with
`org-link-abbrev-alist' variable, or in-buffer "LINK" keyword:

  (setq org-link-abbrev-alist '(("message" . "mailto")))

One drawback is that you cannot write plain links with abbreviations. So
[[message:address@hidden works, but message:@address@hidden does not.

If that is an issue, you can also define a new link with
`org-link-set-parameters':

    (org-link-set-parameters "message" 
     :follow (lambda (path) (browse-url (concat "mailto:"; path))))

HTH,

Regards,

-- 
Nicolas Goaziou



reply via email to

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