Configure markdown-mode
This commit is contained in:
parent
4e59de711c
commit
0c4bd6f88b
12
init.el
12
init.el
|
@ -1542,7 +1542,17 @@ browser defined in `browse-url-secondary-browser-function'."
|
||||||
marginalia-annotators-light))
|
marginalia-annotators-light))
|
||||||
(marginalia-mode +1))
|
(marginalia-mode +1))
|
||||||
|
|
||||||
(setup (:straight markdown-mode))
|
(setup (:straight markdown-mode)
|
||||||
|
(dolist (cell '(("README\\.md\\'" . gfm-mode)
|
||||||
|
("\\.md\\'" . markdown-mode)
|
||||||
|
("\\.markdown\\'" . markdown-mode)))
|
||||||
|
(add-to-list 'auto-mode-alist cell))
|
||||||
|
|
||||||
|
(when (executable-find "markdownfmt")
|
||||||
|
(with-eval-after-load 'apheleia
|
||||||
|
(:option (append apheleia-formatters) '(markdownfmt . ("markdownfmt"))
|
||||||
|
(append apheleia-mode-alist) '(markdown-mode . markdownfmt)
|
||||||
|
(append apheleia-mode-alist) '(gfm-mode . markdownfmt)))))
|
||||||
|
|
||||||
(setup (:straight mwim)
|
(setup (:straight mwim)
|
||||||
(:global "C-a" mwim-beginning
|
(:global "C-a" mwim-beginning
|
||||||
|
|
Loading…
Reference in New Issue