emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] message:// links


From: Jean-Christophe Helary
Subject: Re: [O] message:// links
Date: Sat, 10 Nov 2018 18:07:43 +0900

Thank you Nicolas.

Jean-Christophe 

On Nov 10, 2018, at 16:28, Nicolas Goaziou <address@hidden> wrote:

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

Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune



reply via email to

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