 ;; Presentations using reveal.js
 ;; Download reveal.js from https://github.com/hakimel/reveal.js/
 ;; Instead `ox-reveal' from MELPA
-(require 'ox-reveal)
-;; I have git clones reveal.js in my {emacs config directory}/from-git/
-(setq org-reveal-root     (concat "file://" user-emacs-directory "/from-git/reveal.js/")
-      org-reveal-hlevel   1
-      org-reveal-theme    "default" ;; beige blood moon night serif simple sky solarized
-      org-reveal-mathjax  t ;; Use mathjax.org to render LaTeX equations
-      )
+(req-package ox-reveal
+  :config
+  (progn
+    ;; I have git clones reveal.js in my {emacs config directory}/from-git/
+    (setq org-reveal-root     (concat "file://" user-emacs-directory "/from-git/reveal.js/")
+          org-reveal-hlevel   1
+          org-reveal-theme    "default" ;; beige blood moon night serif simple sky solarized
+          org-reveal-mathjax  t))) ;; Use mathjax.org to render LaTeX equations
 
 ;; org-agenda related functions
 ;; http://sachachua.com/blog/2013/01/emacs-org-task-related-keyboard-shortcuts-agenda/

;; (define-key  org-show-mode-map  (kbd "\e\et") 'org-show-toc)
;; (define-key  org-show-mode-map  (kbd "\e\eq") 'org-show-stop-slideshow)


(setq setup-org-loaded t)
(provide 'setup-org)

;; NOTES


;; org-show -JKitchin
;; https://github.com/jkitchin/jmax/blob/master/org-show.org
(req-package org-show
  :commands (org-show))
;; (define-key  org-show-mode-map  [next]        'org-show-next-slide) ;; Pg-Down
;; (define-key  org-show-mode-map  [prior]       'org-show-previous-slide) ;; Pg-Up

