Fixed #446. Don't change org-structure-template-alist.

Let user to configure
This commit is contained in:
Yujie Wen 2021-07-06 07:21:57 +08:00
parent 826b01beb4
commit 014561540b
1 changed files with 0 additions and 20 deletions

View File

@ -313,18 +313,6 @@ BEFORE the plugins that depend on them."
:group 'org-export-reveal
:type 'string)
(defcustom org-reveal-note-key-char "n"
"If not nil, org-reveal-note-key-char's value is registered as
the key character to Org-mode's structure completion for
Reveal.js notes. When `<' followed by the key character are
typed and then the completion key is pressed, which is usually
`TAB', \"#+BEGIN_NOTES\" and \"#+END_NOTES\" is inserted.
The default value is \"n\". Set the variable to nil to disable
registering the completion"
:group 'org-export-reveal
:type 'string)
(defcustom org-reveal-klipsify-src nil
"Set to non-nil if you would like to make source code blocks editable in exported presentation."
:group 'org-export-reveal
@ -1514,14 +1502,6 @@ Return output file name."
(when client-multiplex
(org-publish-org-to 'reveal filename "_client.html" plist pub-dir))))
;; Register auto-completion for speaker notes.
(when org-reveal-note-key-char
(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
(cons org-reveal-note-key-char "notes"))))
(provide 'ox-reveal)
;;; ox-reveal.el ends here