lang/org: lazy-load ox-pandoc
This commit is contained in:
parent
24dc5d4375
commit
7acb860cb6
1 changed files with 5 additions and 2 deletions
|
@ -8,7 +8,8 @@
|
||||||
(def-package! ox-pandoc
|
(def-package! ox-pandoc
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(unless (executable-find "pandoc")
|
(if (executable-find "pandoc")
|
||||||
|
(push 'pandoc org-export-backends)
|
||||||
(warn "org-export: couldn't find pandoc, disabling pandoc export"))
|
(warn "org-export: couldn't find pandoc, disabling pandoc export"))
|
||||||
(setq org-pandoc-options
|
(setq org-pandoc-options
|
||||||
'((standalone . t)
|
'((standalone . t)
|
||||||
|
@ -17,8 +18,10 @@
|
||||||
|
|
||||||
;;
|
;;
|
||||||
(after! org
|
(after! org
|
||||||
|
(add-transient-hook! #'org-export-dispatch (require 'ox-pandoc))
|
||||||
|
|
||||||
(setq org-export-directory (expand-file-name ".export" +org-dir)
|
(setq org-export-directory (expand-file-name ".export" +org-dir)
|
||||||
org-export-backends '(ascii html latex md pandoc)
|
org-export-backends '(ascii html latex md)
|
||||||
org-export-with-toc t
|
org-export-with-toc t
|
||||||
org-export-with-author t)
|
org-export-with-author t)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue