Sfoglia il codice sorgente

Update org-eww to use new link api

* contrib/lisp/org-eww.el: org-store-link-functions: Remove obsolete
  hook.
  (org-link-set-parameters) Use new api for links.
Matt Lundin 8 anni fa
parent
commit
4bddff606b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      contrib/lisp/org-eww.el

+ 1 - 1
contrib/lisp/org-eww.el

@@ -48,7 +48,7 @@
 
 
 ;; Store Org-link in eww-mode buffer
-(add-hook 'org-store-link-functions 'org-eww-store-link)
+(org-link-set-parameters "eww" :store #'org-eww-store-link)
 (defun org-eww-store-link ()
   "Store a link to the url of a eww buffer."
   (when (eq major-mode 'eww-mode)