blob: d451dd6f5d1ab3e8aba37f3811477bac0b54c786 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
;;; org-export-config.el --- Org Export Configuration -*- lexical-binding: t; -*-
;; author: Craig Jennings <c@cjennings.net>
;;; Commentary:
;;; Code:
;; --------------------------------- Org Export --------------------------------
;; backends for exporting from org-mode
(use-package ox
:defer .5
:ensure nil
:after org
:config
;; load every built-in backend
(dolist (feat '(ox-ascii
ox-beamer
ox-html
ox-icalendar
ox-latex
ox-md
ox-odt
ox-texinfo
ox-man))
(require feat))
;; now tell Org exactly which backends to use
(setq org-export-backends
'(ascii
beamer
html
icalendar
latex
md
odt
org
texinfo
man))
;; Other Settings
(setq org-export-coding-system 'utf-8) ;; force utf-8 in org
(setq org-export-headline-levels 6) ;; export headlines 6 levels deep
(setq org-export-initial-scope 'subtree) ;; export the current subtree by default
(setq org-export-with-author nil) ;; export without author by default
(setq org-export-with-section-numbers nil) ;; export without section numbers by default
(setq org-export-with-tags nil) ;; export without tags by default
(setq org-export-with-tasks '("TODO")) ;; export with tasks by default
(setq org-export-with-toc nil)) ;; export without table of contents by default
;; hugo markdown
(use-package ox-hugo
:after ox)
;; export via pandoc
(use-package ox-pandoc
:after ox)
;; github flavored markdown
(use-package ox-gfm
:after ox)
;; reveal .js
(use-package ox-reveal
:after ox
:config
(setq org-reveal-root "https://cdn.jsdelivr.net/npm/reveal.js"))
;; JIRA markup
;; (use-package ox-jira
;; :after ox)
;; ;; Confluence Wiki markup
;; (use-package ox-confluence
;; :after ox)
(provide 'org-export-config)
;;; org-export-config.el ends here.
|