Browse Source

Update eshell link definition

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

Update to use org-link-set-parameters.
John Kitchin 8 năm trước cách đây
mục cha
commit
60988ca502
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      lisp/org-eshell.el

+ 3 - 2
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.