Bläddra i källkod

Add org mode exporters and pandoc

master
ßingen 7 år sedan
förälder
incheckning
5951263bc8
4 ändrade filer med 43 tillägg och 1 borttagningar
  1. +4
    -1
      init.el
  2. +10
    -0
      lisp/init-ox-gfm.el
  3. +19
    -0
      lisp/init-ox-pandoc.el
  4. +10
    -0
      lisp/init-pandoc.el

+ 4
- 1
init.el Visa fil

@@ -67,11 +67,14 @@
(require 'capnp-mode)

(require 'init-crontab)
(require 'init-org)
(require 'init-markdown)
(require 'init-ox-pandoc)
(require 'init-ox-gfm)
(require 'init-pandoc)
(require 'init-csv)
(require 'init-javascript)
(require 'init-php)
(require 'init-org)
(require 'init-nxml)
(require 'init-html)
(require 'init-css)

+ 10
- 0
lisp/init-ox-gfm.el Visa fil

@@ -0,0 +1,10 @@
;;; package --- ox-gfm
;;; Commentary: org conversion to GitHub flavored Markdown
;;; Code:

(require-package 'ox-gfm)


(provide 'init-ox-gfm)

;;; init-ox-gfm.el ends here

+ 19
- 0
lisp/init-ox-pandoc.el Visa fil

@@ -0,0 +1,19 @@
;;; package --- ox-pandoc
;;; Commentary: org conversion with Pandoc. Pandoc must be installed first
;;; Code:

(require-package 'ox-pandoc)

;; default options for all output formats
(setq org-pandoc-options '((standalone . t)))
;; cancel above settings only for 'docx' format
(setq org-pandoc-options-for-docx '((standalone . nil)))
;; special settings for beamer-pdf and latex-pdf exporters
(setq org-pandoc-options-for-beamer-pdf '((pdf-engine . "xelatex")))
(setq org-pandoc-options-for-latex-pdf '((pdf-engine . "pdflatex")))
;; special extensions for markdown_github output
(setq org-pandoc-format-extensions '(markdown_github+pipe_tables+raw_html))

(provide 'init-ox-pandoc)

;;; init-ox-pandoc.el ends here

+ 10
- 0
lisp/init-pandoc.el Visa fil

@@ -0,0 +1,10 @@
;;; package --- pandoc-mode
;;; Commentary: Emacs mode for interacting with Pandoc
;;; Code:

(require-package 'pandoc-mode)


(provide 'init-pandoc)

;;; init-ox-pandoc.el ends here

Laddar…
Avbryt
Spara