瀏覽代碼

Update gnus link definition

* lisp/org-gnus.el ("gnus"):
Update link definition with org-link-set-parameters.
John Kitchin 8 年之前
父節點
當前提交
386e3957a6
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lisp/org-gnus.el

+ 1 - 2
lisp/org-gnus.el

@@ -74,8 +74,7 @@ this variable to t."
   :type 'boolean)
 
 ;; Install the link type
-(org-add-link-type "gnus" 'org-gnus-open)
-(add-hook 'org-store-link-functions 'org-gnus-store-link)
+(org-link-set-parameters "gnus" :follow #'org-gnus-open :store #'org-gnus-store-link)
 
 ;; Implementation