blob: 07e927dff1af238291508a06c9d5782554681955 (
plain) (
blame)
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
|
;;; init-markdown.el --- Configure markdown -*- lexical-binding: t -*-
;; Author: Franck Cuny <franck@fcuny.net>
;;; Commentary:
;; Configuration related to markdown
;;; Code:
(use-package markdown-mode
:mode (("\\`README\\.md\\'" . gfm-mode)
("\\.md\\'" . markdown-mode)
("\\.markdown\\'" . markdown-mode))
:custom
(markdown-command "pandoc -f markdown_github+smart")
(markdown-command-needs-filename t)
(markdown-enable-math t)
(markdown-open-command "marked")
:init
(setq markdown-command "multimarkdown"))
(use-package markdown-preview-mode
:ensure t
:after markdown-mode
:config
(setq markdown-preview-stylesheets
(list (concat "https://github.com/dmarcotte/github-markdown-preview/"
"blob/master/data/css/github.css"))))
(provide 'init-markdown)
;;; init-markdown.el ends here
|