forked from mirrors/org-mode
Update eshell link definition
* lisp/org-eshell.el ("eshell"): Update to use org-link-set-parameters.
This commit is contained in:
parent
a1ab5b284b
commit
60988ca502
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue