From 014561540bdc5dc6fe68671cadcc3793a65f6b54 Mon Sep 17 00:00:00 2001 From: Yujie Wen Date: Tue, 6 Jul 2021 07:21:57 +0800 Subject: [PATCH] Fixed #446. Don't change org-structure-template-alist. Let user to configure --- ox-reveal.el | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/ox-reveal.el b/ox-reveal.el index 8d4f334..8059d9f 100644 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -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