markdown faces

This commit is contained in:
Chris Cochrun 2025-01-14 09:36:56 -06:00
parent 48c3b5cc8b
commit 97f28995e1
2 changed files with 18 additions and 0 deletions

View file

@ -4023,6 +4023,15 @@ It's probably smart to have markdown.
:mode (("\\.md\\'" . markdown-mode)
("\\.rmd\\'". markdown-mode))
:config
(dolist (face
'((markdown-header-face-1 1.4 ultra-bold)
(markdown-header-face-2 1.2 extra-bold)
(markdown-header-face-3 1.1 bold)
(markdown-header-face-4 1.0 semi-bold)
(markdown-header-face-5 1.0 normal)))
(set-face-attribute (nth 0 face) nil :weight (nth 2 face) :height (nth 1 face)))
(setq markdown-fontify-code-blocks-natively t)
(add-hook 'markdown-mode-hook 'chris/org-mode-setup)
(custom-set-faces '(markdown-code-face ((t (:inherit org-block)))))

View file

@ -2924,6 +2924,15 @@ targets."
:mode (("\\.md\\'" . markdown-mode)
("\\.rmd\\'". markdown-mode))
:config
(dolist (face
'((markdown-header-face-1 1.4 ultra-bold)
(markdown-header-face-2 1.2 extra-bold)
(markdown-header-face-3 1.1 bold)
(markdown-header-face-4 1.0 semi-bold)
(markdown-header-face-5 1.0 normal)))
(set-face-attribute (nth 0 face) nil :weight (nth 2 face) :height (nth 1 face)))
(setq markdown-fontify-code-blocks-natively t)
(add-hook 'markdown-mode-hook 'chris/org-mode-setup)
(custom-set-faces '(markdown-code-face ((t (:inherit org-block)))))