summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Kitchin <jkitchin@andrew.cmu.edu>2016-07-05 10:27:03 -0400
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2016-07-18 22:47:50 +0200
commit60988ca5026d963d04f931f575569ecaa541a109 (patch)
treeb6d4e3b82ceb787045ed32f8b6e4eedea480472b
parenta1ab5b284b82e4c759004ef2c15f083cd2bbd23d (diff)
downloadorg-mode-60988ca5026d963d04f931f575569ecaa541a109.tar.gz
Update eshell link definition
* lisp/org-eshell.el ("eshell"): Update to use org-link-set-parameters.
-rw-r--r--lisp/org-eshell.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/org-eshell.el b/lisp/org-eshell.el
index 1919f6d..6f9a18a 100644
--- a/lisp/org-eshell.el
+++ b/lisp/org-eshell.el
@@ -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.