Update elisp-symbol link definition

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

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 a4abc56db4
commit c74e89e40b
1 changed files with 3 additions and 2 deletions

View File

@ -78,8 +78,9 @@
(require 'org)
(org-add-link-type "elisp-symbol" 'org-elisp-symbol-open)
(add-hook 'org-store-link-functions 'org-elisp-symbol-store-link)
(org-link-set-parameters "elisp-symbol"
:follow #'org-elisp-symbol-open
:store #'org-elisp-symbol-store-link)
(defun org-elisp-symbol-open (path)
"Visit the emacs-lisp elisp-symbol at PATH."