diff options
Diffstat (limited to '')
-rw-r--r-- | config/init-markdown.el | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/config/init-markdown.el b/config/init-markdown.el new file mode 100644 index 0000000..07e927d --- /dev/null +++ b/config/init-markdown.el @@ -0,0 +1,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 |