From 150da00a701df855927f6dab1067d8cbdee3d09f Mon Sep 17 00:00:00 2001 From: James Conroy-Finn Date: Wed, 8 Jul 2015 21:19:45 +0100 Subject: [PATCH] Add ox-pandoc to Org layer --- contrib/org/README.org | 12 ++++++++++++ contrib/org/config.el | 3 +++ contrib/org/packages.el | 8 ++++++++ 3 files changed, 23 insertions(+) diff --git a/contrib/org/README.org b/contrib/org/README.org index fc88f629f..868bdfda2 100644 --- a/contrib/org/README.org +++ b/contrib/org/README.org @@ -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 diff --git a/contrib/org/config.el b/contrib/org/config.el index 1f29125fe..b8dfc6611 100644 --- a/contrib/org/config.el +++ b/contrib/org/config.el @@ -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) diff --git a/contrib/org/packages.el b/contrib/org/packages.el index bbc4e2dc8..e893880c2 100644 --- a/contrib/org/packages.el +++ b/contrib/org/packages.el @@ -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))))