From 77c79127f318ce2c961f473894a836fa2ddb7274 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Thu, 9 Oct 2025 10:32:30 +0200 Subject: [PATCH] Update configuration for `markdown-mode` Based on the excellent documentation at https://jblevins.org/projects/markdown-mode/. --- init.el | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 6daae2d..ff513e8 100644 --- a/init.el +++ b/init.el @@ -615,14 +615,18 @@ split horizontally again, but this extra work should not matter much." :ensure t :pin "melpa-stable" :commands (markdown-mode) - :init (progn - (setq markdown-use-pandoc-style-yaml-metadata t + :init (setopt markdown-use-pandoc-style-yaml-metadata t markdown-command "pandoc --standalone --toc" - markdown-fontify-code-blocks-natively t) - (fset 'markdown-output-standalone-p #'(lambda () t)) - (add-hook 'markdown-mode-hook #'turn-off-auto-fill) - (add-hook 'markdown-mode-hook #'turn-on-visual-line-mode) - (add-hook 'markdown-mode-hook #'turn-on-visual-fill-column-mode))) + markdown-fontify-code-blocks-natively t + markdown-hide-urls t + markdown-asymmetric-header t + markdown-list-indent-width 2 + markdown-special-ctrl-a/e t) + :config (progn + (fset 'markdown-output-standalone-p #'(lambda () t)) + (add-hook 'markdown-mode-hook #'turn-off-auto-fill) + (add-hook 'markdown-mode-hook #'turn-on-visual-line-mode) + (add-hook 'markdown-mode-hook #'turn-on-visual-fill-column-mode))) (use-package multiple-cursors :pin "melpa-stable"