about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-09-02 23:52:46 -0500
committerCase Duckworth2021-09-02 23:52:46 -0500
commit0c4bd6f88b418e0fcdc88f1d635efda461e8eb8b (patch)
tree019a546badf1576decf3e06ca38dc7853a8e5a87
parentGlobalize iscroll-mode (diff)
downloademacs-0c4bd6f88b418e0fcdc88f1d635efda461e8eb8b.tar.gz
emacs-0c4bd6f88b418e0fcdc88f1d635efda461e8eb8b.zip
Configure markdown-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