Hook visual-fill-column-mode into markdown-mode

This commit is contained in:
Case Duckworth 2022-02-08 14:16:40 -06:00
parent 77626da370
commit 62e37fdee6
1 changed files with 2 additions and 0 deletions

View File

@ -1559,6 +1559,8 @@ See also `crux-reopen-as-root-mode'."
(add-to-list 'auto-mode-alist (cons (rx (or ".md" ".markdown" ".mdown")
eos)
'markdown-mode))
(with-eval-after-load 'visual-fill-column
(:hook #'visual-fill-column-mode))
(with-eval-after-load 'apheleia
(when-let ((mdfmt-exe (executable-find "markdownfmt")))
(setf (alist-get 'markdownfmt apheleia-formatters) mdfmt-exe)