From 4189a3e1ef7108290fed48a7248c2ca5ed75209b Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 27 Jun 2022 19:34:54 +0100 Subject: markdown-mode configuration --- init.el | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/init.el b/init.el index 2cdb3a2..1b05fc4 100644 --- a/init.el +++ b/init.el @@ -1273,6 +1273,24 @@ ;;;; markdown (use-package markdown-mode + :ensure t + :init (setq markdown-command '("pandoc" "--from=markdown" "--to=html5") + markdown-enable-wiki-links t + markdown-wiki-link-fontify-missing t + markdown-enable-math nil ;; toggle with M-x markdown-toggle-math + markdown-link-space-sub-char "-" + markdown-gfm-additional-languages '("whizzml" "flatline") + markdown-hide-urls t + markdown-hide-markup nil + markdown-fontify-code-blocks-natively t + markdown-unordered-list-item-prefix t) + :hook (markdown-mode . outline-minor-mode) + :config + (dolist (u '("doc" "message")) + (add-to-list 'markdown-uri-types u))) + +;; used by markdown mode to edit code blocks +(use-package edit-indirect :ensure t) (use-package markdown-toc -- cgit v1.2.3