Use org-structure-template-alist's version attribute instead of org-version

This commit is contained in:
Yujie Wen 2019-06-10 23:57:26 +08:00
parent 1b7957f732
commit 5811fbde3b
1 changed files with 1 additions and 1 deletions

View File

@ -1272,7 +1272,7 @@ Return output file name."
;; Register auto-completion for speaker notes.
(when org-reveal-note-key-char
(if (version< org-version "9.2")
(if (version< (cdr (get 'org-structure-template-alist 'custom-package-version)) "9.2")
(add-to-list 'org-structure-template-alist
(list org-reveal-note-key-char "#+BEGIN_NOTES\n\?\n#+END_NOTES"))
(add-to-list 'org-structure-template-alist