Explorar o código

Update irc link definition

* lisp/org-irc.el ("irc"):
Define link with org-link-set-parameters.
John Kitchin %!s(int64=8) %!d(string=hai) anos
pai
achega
02a00841dc
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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."