From 7c5780a719565630f58e7751afa8c7e458c49871 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 6 Apr 2024 11:22:57 -0700 Subject: a org file is definitely not the way for me --- config/init-markdown.el | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 config/init-markdown.el (limited to 'config/init-markdown.el') 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 + +;;; 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 -- cgit 1.4.1