Browse Source

Update bibtex link definition

* lisp/org-bibtex.el ("bibtex"):

Change link definition to use org-link-set-parameters
John Kitchin 5 years ago
parent
commit
91fd0a1072
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lisp/org-bibtex.el

+ 3 - 2
lisp/org-bibtex.el

@@ -452,8 +452,9 @@ With optional argument OPTIONAL, also prompt for optional fields."
 
 
 ;;; Bibtex link functions
-(org-add-link-type "bibtex" 'org-bibtex-open)
-(add-hook 'org-store-link-functions 'org-bibtex-store-link)
+(org-link-set-parameters "bibtex"
+			 :follow #'org-bibtex-open
+			 :store #'org-bibtex-store-link)
 
 (defun org-bibtex-open (path)
   "Visit the bibliography entry on PATH."