Update vm link definition

* contrib/lisp/org-vm.el ("vm"):

Update to use org-link-set-parameters.
This commit is contained in:
Robert Klein 2016-08-08 03:24:23 +02:00 committed by Nicolas Goaziou
parent 3f2a03dad6
commit 02a51cfed3
1 changed files with 2 additions and 3 deletions

View File

@ -55,9 +55,8 @@
(defvar vm-folder-directory) (defvar vm-folder-directory)
;; Install the link type ;; Install the link type
(org-add-link-type "vm" 'org-vm-open) (org-link-set-parameters "vm" :follow #'org-vm-open :store #'org-vm-store-link)
(org-add-link-type "vm-imap" 'org-vm-imap-open) (org-link-set-parameters "vm-imap" :follow #'org-vm-imap-open)
(add-hook 'org-store-link-functions 'org-vm-store-link)
;; Implementation ;; Implementation
(defun org-vm-store-link () (defun org-vm-store-link ()