瀏覽代碼

Update wl link definition

* contrib/lisp/org-wl.el ("wl"):

Update to use org-link-set-parameters.
Robert Klein 8 年之前
父節點
當前提交
8d64b518db
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      contrib/lisp/org-wl.el

+ 1 - 2
contrib/lisp/org-wl.el

@@ -109,8 +109,7 @@ googlegroups otherwise."
   "List of folder indicators.  See Wanderlust manual, section 3.")
 
 ;; Install the link type
-(org-add-link-type "wl" 'org-wl-open)
-(add-hook 'org-store-link-functions 'org-wl-store-link)
+(org-link-set-parameters "wl" :follow #'org-wl-open :store #'org-wl-store-link)
 
 ;; Implementation