mirror of https://github.com/yjwen/org-reveal.git
Add menu entry to export and browse HTML file.
Add function org-reveal-export-to-html-and-browse that call org-reveal-export-to-html and browse generated file. Add menu entry `C-c R B` to export and browse HTML file.
This commit is contained in:
parent
8e269c28ac
commit
6ac0be17e9
|
@ -36,7 +36,8 @@
|
||||||
|
|
||||||
:menu-entry
|
:menu-entry
|
||||||
'(?R "Export to reveal.js HTML Presentation"
|
'(?R "Export to reveal.js HTML Presentation"
|
||||||
((?R "To file" org-reveal-export-to-html)))
|
((?R "To file" org-reveal-export-to-html)
|
||||||
|
(?B "To file and Browse" org-reveal-export-to-html-and-browse)))
|
||||||
|
|
||||||
:options-alist
|
:options-alist
|
||||||
'((:reveal-control nil "reveal_control" org-reveal-control t)
|
'((:reveal-control nil "reveal_control" org-reveal-control t)
|
||||||
|
@ -705,6 +706,12 @@ info is a plist holding export options."
|
||||||
(org-export-to-file
|
(org-export-to-file
|
||||||
'reveal file subtreep visible-only body-only ext-plist)))
|
'reveal file subtreep visible-only body-only ext-plist)))
|
||||||
|
|
||||||
|
(defun org-reveal-export-to-html-and-browse
|
||||||
|
(&optional async subtreep visible-only body-only ext-plist)
|
||||||
|
"Export current buffer to a reveal.js and browse HTML file."
|
||||||
|
(interactive)
|
||||||
|
(browse-url-of-file (org-reveal-export-to-html async subtreep visible-only body-only ext-plist)))
|
||||||
|
|
||||||
(provide 'ox-reveal)
|
(provide 'ox-reveal)
|
||||||
|
|
||||||
;;; ox-reveal.el ends here
|
;;; ox-reveal.el ends here
|
||||||
|
|
Loading…
Reference in New Issue