From b8158af7a839a751e6976cd95d18a5d5f199024a Mon Sep 17 00:00:00 2001 From: "Robert P. Goldman" Date: Thu, 6 Jan 2022 12:27:59 -0600 Subject: [PATCH 1/4] Fix FAQ entry about mailto links. The old entry referred to the variable =org-link-mailto-program= which was removed from org-mode almost eight years ago! See org-mode commit b9f2e17f07faf01109fc6f7f1eb5a34e0f97eafb --- org-faq.org | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/org-faq.org b/org-faq.org index 4b34560c..cac8063e 100644 --- a/org-faq.org +++ b/org-faq.org @@ -1927,13 +1927,13 @@ For example: #+index: Link!Mailto You can customize the function org-mode uses to open mailto links by -setting the variable =org-link-mailto-program=: +changing the entry for =mailto:= links in =org-link-parameters=: -=M-x customize-variable org-link-mailto-program= +=M-x customize-variable org-link-parameters= The default function called is =browse-url=, which opens a mail composition buffer within Emacs. The type of buffer opened by -browse-url depends on the setting of the variable =mail-user-agent=. +=browse-url= depends on the setting of the variable =mail-user-agent=. Thus, if you want to ensure that mailto links use Gnus to open a message buffer, you could add the following to your =.emacs=: @@ -1941,6 +1941,18 @@ message buffer, you could add the following to your =.emacs=: (setq mail-user-agent 'gnus-user-agent) #+end_src +You can also change the function used to a different one. For +example, the following function (on MacOS) opens =mailto:= links in +the =MailMate= program: + +#+begin_src elisp +("mailto" :follow + (lambda + (path) + (shell-command + (format "open -a MailMate 'mailto:%s'" path)))) +#+end_src + ** Can I use CamelCase links? :PROPERTIES: :CUSTOM_ID: CamelCase-links -- 2.31.1