diff --git a/init.org b/init.org index c98bc4b..46f64c4 100644 --- a/init.org +++ b/init.org @@ -4490,8 +4490,9 @@ preceded by another heading) and after headings." :mode "\\.md\\'" :hook (markdown-mode . (lambda () - (make-local-variable 'before-save-hook) - (add-hook 'before-save-hook 'markdown-cleanup-list-numbers))) + (add-hook 'before-save-hook + 'markdown-cleanup-list-numbers + 0 t))) (markdown-mode . markdown-display-inline-images) :config (setq markdown-command "cmark" markdown-css-paths '("style.css")