Explorar o código

Update rmail link definition

* lisp/org-rmail.el ("rmail"):
Use org-link-set-parameters to define link.
John Kitchin %!s(int64=8) %!d(string=hai) anos
pai
achega
12f473f584
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      lisp/org-rmail.el

+ 1 - 2
lisp/org-rmail.el

@@ -43,8 +43,7 @@
 (defvar rmail-file-name)        ; From rmail.el
 
 ;; Install the link type
-(org-add-link-type "rmail" 'org-rmail-open)
-(add-hook 'org-store-link-functions 'org-rmail-store-link)
+(org-link-set-parameters "rmail" :follow #'org-rmail-open :store #'org-rmail-store-link)
 
 ;; Implementation
 (defun org-rmail-store-link ()