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

18
init.el
View File

@ -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"