From 5b49f86797086c9561bdb3584a372e7af67818e1 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 28 Feb 2015 01:23:45 -0500 Subject: Add PubMed link type for Org --- lisp/init-org.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lisp/init-org.el b/lisp/init-org.el index 92d6d3b..b32048c 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -541,6 +541,19 @@ global value. A numeric prefix sets MAXLEVEL (defaults to 2)." (define-key org-agenda-mode-map (kbd "C-j") 'org-agenda-goto-date) (define-key org-agenda-mode-map "j" 'ace-jump-mode)) + +;;; Custom links + +(after 'org + (org-add-link-type "pmid" 'km/org-pmid-open)) + +(defvar km/org-pmid-search-url "http://www.ncbi.nlm.nih.gov/pubmed/?term=%s" + "URL to search for PMID.") + +(defun km/org-pmid-open (path) + "Seacrh for PMID at `km/org-pmid-search-url'." + (browse-url (format km/org-pmid-search-url path))) + ;;; Export -- cgit v1.2.3