summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-06-27 19:34:54 +0100
committerjao <jao@gnu.org>2022-06-27 19:34:54 +0100
commit4189a3e1ef7108290fed48a7248c2ca5ed75209b (patch)
tree268341969d67fb4fda095c2e1b4c0838b7dc52de
parent2cc170f23a8e50d637a4513a2e0cdde91491d080 (diff)
downloadelibs-4189a3e1ef7108290fed48a7248c2ca5ed75209b.tar.gz
elibs-4189a3e1ef7108290fed48a7248c2ca5ed75209b.tar.bz2
markdown-mode configuration
-rw-r--r--init.el18
1 files changed, 18 insertions, 0 deletions
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