summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2022-01-10 08:33:38 -0600
committerCase Duckworth2022-01-10 08:33:38 -0600
commit0adf0814ee81f4addd0a3acbcc2d22c654a1fae5 (patch)
tree1e908052221373a3703dccf6e673c94510535f24 /init.el
parentGah, so many changes (diff)
downloademacs-0adf0814ee81f4addd0a3acbcc2d22c654a1fae5.tar.gz
emacs-0adf0814ee81f4addd0a3acbcc2d22c654a1fae5.zip
Add markdown
Diffstat (limited to 'init.el')
-rw-r--r--init.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/init.el b/init.el index b32dfce..46cd281 100644 --- a/init.el +++ b/init.el
@@ -1158,6 +1158,17 @@ See also `crux-reopen-as-root-mode'."
1158(setup (:straight marginalia) 1158(setup (:straight marginalia)
1159 (marginalia-mode +1)) 1159 (marginalia-mode +1))
1160 1160
1161(setup (:straight markdown-mode)
1162 (:option markdown-hide-markup t)
1163 (add-to-list 'auto-mode-alist (cons (rx (or ".md" ".markdown" ".mdown")
1164 eos)
1165 'markdown-mode))
1166 (with-eval-after-load 'apheleia
1167 (when-let ((mdfmt-exe (executable-find "markdownfmt")))
1168 (setf (alist-get 'markdownfmt apheleia-formatters) mdfmt-exe)
1169 (setf (alist-get 'markdown-mode apheleia-mode-alist) 'markdownfmt)
1170 (setf (alist-get 'gfm-mode apheleia-mode-alist) 'markdownfmt))))
1171
1161(setup (:straight minions) 1172(setup (:straight minions)
1162 (:option minions-prominent-modes 1173 (:option minions-prominent-modes
1163 '(tracking-mode)) 1174 '(tracking-mode))