org: automatically enable ox-pandoc when pandoc layer is used
This commit is contained in:
parent
150da00a70
commit
a1dace931a
|
@ -4,20 +4,20 @@
|
|||
|
||||
* Table of Contents :TOC@4:
|
||||
- [[#description][Description]]
|
||||
- [[#features][Features:]]
|
||||
- [[#features][Features:]]
|
||||
- [[#install][Install]]
|
||||
- [[#layer][Layer]]
|
||||
- [[#github-support][Github support]]
|
||||
- [[#pandoc-support][Pandoc support]]
|
||||
- [[#different-bullets][Different bullets]]
|
||||
- [[#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]]
|
||||
- [[#element-insertion][Element insertion]]
|
||||
- [[#org-emphasize][Org emphasize]]
|
||||
- [[#tagging][Tagging]]
|
||||
- [[#pomodoro][Pomodoro]]
|
||||
- [[#presentation][Presentation]]
|
||||
- [[#org-repo-todo][Org-repo-todo]]
|
||||
- [[#org-with-evil-org-mode][Org with evil-org-mode]]
|
||||
- [[#element-insertion][Element insertion]]
|
||||
- [[#org-emphasize][Org emphasize]]
|
||||
- [[#tagging][Tagging]]
|
||||
- [[#pomodoro][Pomodoro]]
|
||||
- [[#presentation][Presentation]]
|
||||
- [[#org-repo-todo][Org-repo-todo]]
|
||||
|
||||
* Description
|
||||
|
||||
|
@ -53,14 +53,8 @@ flavored markdown set the variable =org-enable-github-support= to =t=.
|
|||
|
||||
** 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
|
||||
Exporting Org mode documents via [[http://pandoc.org/][Pandoc]] using the [[https://github.com/kawabata/ox-pandoc][ox-pandoc]] exporter will
|
||||
be automatically available when you use the =pandoc= layer.
|
||||
|
||||
** Different bullets
|
||||
|
||||
|
|
|
@ -15,7 +15,4 @@
|
|||
(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)
|
||||
|
|
|
@ -231,9 +231,10 @@ Will work on both org-mode and any mode that accepts plain html."
|
|||
(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))))
|
||||
(when (configuration-layer/layer-usedp 'pandoc)
|
||||
(defun org/init-ox-pandoc ()
|
||||
(use-package ox-pandoc
|
||||
:if (configuration-layer/package-usedp 'pandoc-mode)
|
||||
:defer t
|
||||
:init
|
||||
(eval-after-load 'org '(require 'ox-pandoc)))))
|
||||
|
|
Loading…
Reference in a new issue