How to render slides from spacemacs org mode to reveal.js

Posted on Tue 31 May 2016 in spacemacs

Steps to follow

  1. Create a spacemacs layer or add to dotspacemacs-additional-packages ox-reveal
  2. SPC f e R to re-scan the packages (so that ox-reveal will be installed from melpa)
  3. Open a file in org mode (I use the deft layer to use org mode and taking notes)
  4. Put as a header #+REVEAL_ROOT:
  5. Use heading with starting with * if you wish to have one slide and no children
  6. Use double heading with ** if you want to have a vertical slide as a branch of the father slide
  7. Hit SPC : and type load-library, then type ox-reveal
  8. To render the slides just hit C-c C-e and select R B to save and preview the slides
  9. Enjoy!

EDIT: Thanks to Glenn Eckstein's comment
In step 1. instead of adding ox-reveal just put after your org entry in the dotspacemacs-configuration-layers section:

(org :variables
     org-enable-reveal-js-support t)