From 97f28995e125c8c90893ff0cb894fc325888a5aa Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 14 Jan 2025 09:36:56 -0600 Subject: [PATCH] markdown faces --- README.org | 9 +++++++++ init.el | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/README.org b/README.org index a3925cf9..02f98b53 100644 --- a/README.org +++ b/README.org @@ -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))))) diff --git a/init.el b/init.el index 5c28661a..b5bd7b83 100644 --- a/init.el +++ b/init.el @@ -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)))))