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:
Sliim 2013-11-10 23:51:25 +01:00
parent 8e269c28ac
commit 6ac0be17e9
1 changed files with 8 additions and 1 deletions

View File

@ -36,7 +36,8 @@
:menu-entry
'(?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
'((:reveal-control nil "reveal_control" org-reveal-control t)
@ -705,6 +706,12 @@ info is a plist holding export options."
(org-export-to-file
'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)
;;; ox-reveal.el ends here