Parcourir la source

Update irc link definition

* lisp/org-irc.el ("irc"):
Define link with org-link-set-parameters.
John Kitchin il y a 8 ans
Parent
commit
02a00841dc
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      lisp/org-irc.el

+ 1 - 3
lisp/org-irc.el

@@ -71,9 +71,7 @@
 
 ;; Generic functions/config (extend these for other clients)
 
-(add-to-list 'org-store-link-functions 'org-irc-store-link)
-
-(org-add-link-type "irc" 'org-irc-visit nil)
+(org-link-set-parameters "irc" :follow #'org-irc-visit :store #'org-irc-store-link)
 
 (defun org-irc-visit (link)
   "Parse LINK and dispatch to the correct function based on the client found."