Update configuration for markdown-mode

Based on the excellent documentation at https://jblevins.org/projects/markdown-mode/.
This commit is contained in:
Daniel Borchmann 2025-10-09 10:32:30 +02:00
parent 169a0b4608
commit 77c79127f3
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

10
init.el
View File

@ -615,10 +615,14 @@ split horizontally again, but this extra work should not matter much."
:ensure t :ensure t
:pin "melpa-stable" :pin "melpa-stable"
:commands (markdown-mode) :commands (markdown-mode)
:init (progn :init (setopt markdown-use-pandoc-style-yaml-metadata t
(setq markdown-use-pandoc-style-yaml-metadata t
markdown-command "pandoc --standalone --toc" markdown-command "pandoc --standalone --toc"
markdown-fontify-code-blocks-natively t) 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)) (fset 'markdown-output-standalone-p #'(lambda () t))
(add-hook 'markdown-mode-hook #'turn-off-auto-fill) (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-line-mode)