Merge pull request #364 from ezchi/hotfix/support-new-org-struct-template-alist-format

Support new org-structure-template-alist format in org-mode v9.2
This commit is contained in:
Yujie Wen 2019-06-09 23:18:50 +08:00 committed by GitHub
commit 1b7957f732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 5 deletions

View File

@ -335,10 +335,10 @@ content."
(const multiplex)))
(defcustom org-reveal-external-plugins nil
"Additional third-party Plugins to load with reveal.
Each entry should contain a name and an expression of the form
"Additional third-party Plugins to load with reveal.
Each entry should contain a name and an expression of the form
\"{src: '%srelative/path/from/reveal/root', async:true/false,condition: jscallbackfunction(){}}\"
Note that some plugins have dependencies such as jquery; these must be included here as well,
Note that some plugins have dependencies such as jquery; these must be included here as well,
BEFORE the plugins that depend on them."
:group 'org-export-reveal
:type 'alist)
@ -1272,8 +1272,12 @@ Return output file name."
;; Register auto-completion for speaker notes.
(when org-reveal-note-key-char
(add-to-list 'org-structure-template-alist
(list org-reveal-note-key-char "#+BEGIN_NOTES\n\?\n#+END_NOTES")))
(if (version< org-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
(cons org-reveal-note-key-char "notes"))))
(provide 'ox-reveal)