Skip to content

Commit c1ec450

Browse files
committed
Fontify Grimoire code blocks if possible
1 parent 7ffc207 commit c1ec450

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cider-grimoire.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ opposite of what that option dictates."
7878
(with-current-buffer (cider-popup-buffer cider-grimoire-buffer t)
7979
(read-only-mode -1)
8080
(insert content)
81+
(when (require 'markdown-mode nil 'noerror)
82+
(markdown-mode)
83+
(cider-popup-buffer-mode 1)
84+
(when (fboundp 'markdown-toggle-fontify-code-blocks-natively)
85+
(markdown-toggle-fontify-code-blocks-natively 1)))
8186
(read-only-mode +1)
8287
(goto-char (point-min))
8388
(current-buffer)))

0 commit comments

Comments
 (0)