Skip to content

Instantly share code, notes, and snippets.

@stask
Created May 1, 2019 09:13
Show Gist options
  • Save stask/01242c9f22f317b8de5bdc5c725c7e10 to your computer and use it in GitHub Desktop.
Save stask/01242c9f22f317b8de5bdc5c725c7e10 to your computer and use it in GitHub Desktop.
Add support for Mailplane links to org-mode
;; attempt to add mailplane support
(defcustom org-mailplane-url-protocol "mailplane"
"Protocol identifier for Mailplane links."
:group 'org-mailplane
:type 'string)
(defun org-mailplane-follow (email-id)
"Open mailplane with given EMAIL-ID."
(browse-url (concat "mailplane:" email-id)))
(org-link-set-parameters org-mailplane-url-protocol :follow #'org-mailplane-follow)
@stask
Copy link
Author

stask commented May 1, 2019

Without it, was getting "No match - create as a new heading" popup when trying to click on mailplane links in org. Just stick this piece somewhere inside (with-eval-after-load 'org ...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment