ob-smiles.el: Update org babel API

* contrib/lisp/ob-smiles.el (org-link): Fix from org-add-link-type to
org-link-set-parameters

TINYCHANGE
This commit is contained in:
Lein Matsumaru 2021-03-16 10:52:18 +00:00 committed by Kyle Meyer
parent e07cb2ad3c
commit 1738b455b3
1 changed files with 7 additions and 4 deletions

View File

@ -14,7 +14,10 @@
;; Maintainer: stardiviner [numbchild@gmail.com]
;;; Code:
(require 'ob)
(require 'org-element)
;; Org-mode Babel
(defun org-babel-execute:smiles (body params)
"Execute SMILES babel `BODY' with `PARAMS'."
@ -36,10 +39,10 @@
((eq 'html backend)
(format "<a href=\"#%s\">%s</a>" name name)))))
(org-add-link-type
(org-link-set-parameters
"molecule"
'molecule-jump
'molecule-export)
:follow 'molecule-jump
:export 'molecule-export)
;; org-mode element
(org-element-map (org-element-parse-buffer)