diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-02-28 01:23:45 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-02-28 01:26:03 -0500 |
commit | 5b49f86797086c9561bdb3584a372e7af67818e1 (patch) | |
tree | 317249e8fda92f82365fde4cec33a3fb7fd6295e /lisp | |
parent | e2cb5d113118161ec230c7417da0829f0eaf03f5 (diff) | |
download | emacs.d-5b49f86797086c9561bdb3584a372e7af67818e1.tar.gz |
Add PubMed link type for Org
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-org.el | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ -542,6 +542,19 @@ global value. A numeric prefix sets MAXLEVEL (defaults to 2)." (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 (after 'org |