Add ox-pandoc to Org layer

This commit is contained in:
James Conroy-Finn 2015-07-08 21:19:45 +01:00 committed by syl20bnr
parent 425a9883cc
commit 150da00a70
3 changed files with 23 additions and 0 deletions

View file

@ -8,6 +8,7 @@
- [[#install][Install]]
- [[#layer][Layer]]
- [[#github-support][Github support]]
- [[#pandoc-support][Pandoc support]]
- [[#different-bullets][Different bullets]]
- [[#key-bindings][Key bindings]]
- [[#org-with-evil-org-mode][Org with evil-org-mode]]
@ -50,6 +51,17 @@ flavored markdown set the variable =org-enable-github-support= to =t=.
org-enable-github-support t)))
#+END_SRC
** Pandoc support
To enable exporting Org mode documents via [[http://pandoc.org/][Pandoc]] you can activate the [[https://github.com/kawabata/ox-pandoc][ox-pandoc]]
exporter by setting =org-enable-pandoc-support= to =t=.
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(
(org :variables
org-enable-pandoc-support t)))
#+END_SRC
** Different bullets
You can tweak the bullets displayed in the org buffer in the function

View file

@ -15,4 +15,7 @@
(defvar org-enable-github-support nil
"If non-nil Github related packages are configured.")
(defvar org-enable-pandoc-support nil
"If non-nil Pandoc related packages are configured.")
(spacemacs|defvar-company-backends org-mode)

View file

@ -19,6 +19,7 @@
htmlize
org
org-bullets
ox-pandoc
org-pomodoro
org-present
org-repo-todo
@ -229,3 +230,10 @@ Will work on both org-mode and any mode that accepts plain html."
(defun org/init-htmlize ()
(use-package htmlize
:defer t))
(defun org/init-ox-pandoc ()
(use-package ox-pandoc
:if org-enable-pandoc-support
:defer t
:init
(eval-after-load 'org '(require 'ox-pandoc))))