feat(exports): Add pandoc exporting to org-mode and markdown-mode

This commit is contained in:
2020-03-17 01:55:32 +00:00
parent faa82907d9
commit 07521a1e71
5 changed files with 53 additions and 9 deletions

View File

@@ -16,7 +16,9 @@
** Installation
1. Clone the repo to =~/.emacs.d=:
: git clone git://github.com/jimeh/.emacs.d.git ~/.emacs.d
#+BEGIN_SRC
git clone git://github.com/jimeh/.emacs.d.git ~/.emacs.d
#+END_SRC
2. Launch Emacs and wait a few minutes while it installs all packages.
3. Enjoy ^_^

View File

@@ -117,10 +117,11 @@
;; Org-mode
(require 'siren-htmlize)
(require 'siren-org-mode)
(require 'siren-ob-mermaid)
(require 'siren-org-mode)
(require 'siren-ox-gfm)
(require 'siren-ox-jira)
(require 'siren-ox-pandoc)
;; Tools
(require 'siren-docker)

View File

@@ -31,6 +31,12 @@
:hook
(markdown-mode . siren-markdown-mode-setup)
:custom
(markdown-command "pandoc -f gfm -t html5")
:custom-face
(markdown-code-face ((t nil)))
:init
(defun siren-markdown-mode-setup ()
(setq markdown-asymmetric-header t
@@ -42,13 +48,7 @@
(prettier-js-mode)
(flyspell-mode)
(smartparens-mode +1)
(subword-mode))
:custom-face
(markdown-code-face ((t nil)))
:custom
(markdown-command "redcarpet"))
(subword-mode)))
(provide 'siren-markdown)
;;; siren-markdown.el ends here

View File

@@ -0,0 +1,27 @@
;;; siren-ox-pandoc.el --- jimeh's Emacs Siren: ox-pandoc configuration.
;;; Commentary:
;; Basic configuration for ox-pandoc.
;;; Code:
(require 'siren-org-mode)
(use-package ox-pandoc
:defer t
:hook
(org-mode . siren-ox-pandoc-setup)
:custom
(org-pandoc-options-for-gfm '((columns . "80")))
(org-pandoc-options-for-markdown '((columns . "80")))
(org-pandoc-options-for-org '((columns . "80")))
:init
(defun siren-ox-pandoc-setup ()
(require 'ox-pandoc)))
(provide 'siren-ox-pandoc)
;;; siren-ox-pandoc.el ends here

View File

@@ -0,0 +1,14 @@
;;; siren-pandoc.el --- jimeh's Emacs Siren: pandoc-mode configuration.
;;; Commentary:
;; Basic configuration for pandoc-mode.
;;; Code:
(use-package pandoc-mode
:hook
(markdown-mode . pandoc-mode))
(provide 'siren-pandoc)
;;; siren-pandoc.el ends here