Update docview link definition

* lisp/org-docview.el ("docview"):

Update link definition with org-link-set-parameters.
This commit is contained in:
John Kitchin 2016-07-05 10:26:28 -04:00 committed by Nicolas Goaziou
parent 91fd0a1072
commit a1ab5b284b
1 changed files with 4 additions and 2 deletions

View File

@ -49,8 +49,10 @@
(declare-function doc-view-goto-page "doc-view" (page))
(declare-function image-mode-window-get "image-mode" (prop &optional winprops))
(org-add-link-type "docview" 'org-docview-open 'org-docview-export)
(add-hook 'org-store-link-functions 'org-docview-store-link)
(org-link-set-parameters "docview"
:follow #'org-docview-open
:export #'org-docview-export
:store #'org-docview-store-link)
(defun org-docview-export (link description format)
"Export a docview link from Org files."