Update eshell link definition

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

Update to use org-link-set-parameters.
This commit is contained in:
John Kitchin 2016-07-05 10:27:03 -04:00 committed by Nicolas Goaziou
parent a1ab5b284b
commit 60988ca502
1 changed files with 3 additions and 2 deletions

View File

@ -27,8 +27,9 @@
(require 'eshell)
(require 'esh-mode)
(org-add-link-type "eshell" 'org-eshell-open)
(add-hook 'org-store-link-functions 'org-eshell-store-link)
(org-link-set-parameters "eshell"
:follow #'org-eshell-open
:store #'org-eshell-store-link)
(defun org-eshell-open (link)
"Switch to am eshell buffer and execute a command line.