From aa06309067eeec46aecc387761f9ccecb434323e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 31 Aug 2020 22:02:39 -0400 Subject: [PATCH] lang/markdown: fontify rust blocks correctly --- modules/lang/markdown/config.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/lang/markdown/config.el b/modules/lang/markdown/config.el index d82e396db..414a683cc 100644 --- a/modules/lang/markdown/config.el +++ b/modules/lang/markdown/config.el @@ -63,6 +63,10 @@ capture, the end position, and the output buffer.") (sp-local-pair '(markdown-mode gfm-mode) "`" "`" :unless '(:add sp-point-before-word-p sp-point-before-same-p)) + ;; Highly rust blocks correctly + (when (featurep! :lang rust) + (add-to-list 'markdown-code-lang-modes '("rust" . rustic-mode))) + ;; Don't trigger autofill in code blocks (see `auto-fill-mode') (setq-hook! 'markdown-mode-hook fill-nobreak-predicate (cons #'markdown-code-block-at-point-p