Created
December 2, 2019 08:19
-
-
Save khinsen/7ed357eed9b27f142e4fa6f5c4ad45dd to your computer and use it in GitHub Desktop.
Add org-mode link support to pinboard.el (https://github.com/davep/pinboard.el)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'org) | |
(defun org-pinboard-store-link () | |
"Store a link taken from a pinboard buffer." | |
(when (eq major-mode 'pinboard-mode) | |
(pinboard-with-current-pin pin | |
(org-store-link-props | |
:type "pinboard" | |
:link (alist-get 'href pin) | |
:description (alist-get 'description pin))))) | |
(org-link-set-parameters "pinboard" | |
:follow #'browse-url | |
:store #'org-pinboard-store-link) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment