Kaynağa Gözat

Update mairix link definition

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

Update to use org-link-set-parameters.
Robert Klein 8 yıl önce
ebeveyn
işleme
040315cad8
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      contrib/lisp/org-mairix.el

+ 3 - 2
contrib/lisp/org-mairix.el

@@ -82,8 +82,9 @@ correctly, you should not need to change this.
 
 ;;; The hooks to integrate mairix into org
 
-(org-add-link-type "mairix" 'org-mairix-open)
-(add-hook 'org-store-link-functions 'org-mairix-store-gnus-link)
+(org-link-set-parameters "mairix"
+			 :follow #'org-mairix-open
+			 :store #'org-mairix-store-gnus-link)
 
 ;;; Generic org-mairix functions