summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/init.el b/init.el index ccd9064..1da6cd5 100644 --- a/init.el +++ b/init.el
@@ -1542,7 +1542,17 @@ browser defined in `browse-url-secondary-browser-function'."
1542 marginalia-annotators-light)) 1542 marginalia-annotators-light))
1543 (marginalia-mode +1)) 1543 (marginalia-mode +1))
1544 1544
1545(setup (:straight markdown-mode)) 1545(setup (:straight markdown-mode)
1546 (dolist (cell '(("README\\.md\\'" . gfm-mode)
1547 ("\\.md\\'" . markdown-mode)
1548 ("\\.markdown\\'" . markdown-mode)))
1549 (add-to-list 'auto-mode-alist cell))
1550
1551 (when (executable-find "markdownfmt")
1552 (with-eval-after-load 'apheleia
1553 (:option (append apheleia-formatters) '(markdownfmt . ("markdownfmt"))
1554 (append apheleia-mode-alist) '(markdown-mode . markdownfmt)
1555 (append apheleia-mode-alist) '(gfm-mode . markdownfmt)))))
1546 1556
1547(setup (:straight mwim) 1557(setup (:straight mwim)
1548 (:global "C-a" mwim-beginning 1558 (:global "C-a" mwim-beginning