diff options
-rw-r--r-- | init.el | 11 |
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)) |