From db83a4975be50b5c579b0a075acd952f8135a73f Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 26 May 2026 13:15:59 -0500 Subject: fix(dupre): make org headings and the document title non-bold org-level-1..4 inherit dupre-heading-1..4, which set :weight bold, so org headings rendered bold. I overrode the weight to normal on the org-level faces themselves rather than on dupre-heading-*, so the info-manual, markdown, and shr headings that also inherit those faces keep their bold. I also dropped the bold from org-document-title for consistency. --- themes/dupre-faces.el | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'themes') diff --git a/themes/dupre-faces.el b/themes/dupre-faces.el index 3fe14c9a..8fad4c62 100644 --- a/themes/dupre-faces.el +++ b/themes/dupre-faces.el @@ -197,10 +197,14 @@ `(ediff-odd-diff-Ancestor ((t (:background ,bg+1)))) ;;;;; Org-mode - Gold for level 1 only, blue for level 2, then neutrals - `(org-level-1 ((t (:inherit dupre-heading-1)))) - `(org-level-2 ((t (:inherit dupre-heading-2)))) - `(org-level-3 ((t (:inherit dupre-heading-3)))) - `(org-level-4 ((t (:inherit dupre-heading-4)))) + ;; Inherit the dupre-heading-* colour and height but force a normal + ;; weight: org headings read cleaner non-bold. The override lives here + ;; rather than on dupre-heading-* so info, markdown, and shr headings + ;; (which also inherit those faces) keep their bold. + `(org-level-1 ((t (:inherit dupre-heading-1 :weight normal)))) + `(org-level-2 ((t (:inherit dupre-heading-2 :weight normal)))) + `(org-level-3 ((t (:inherit dupre-heading-3 :weight normal)))) + `(org-level-4 ((t (:inherit dupre-heading-4 :weight normal)))) `(org-level-5 ((t (:foreground ,gray+1)))) `(org-level-6 ((t (:foreground ,gray+1)))) `(org-level-7 ((t (:foreground ,gray)))) @@ -255,7 +259,7 @@ `(org-block-begin-line ((t (:foreground ,gray :background ,bg :extend t)))) `(org-block-end-line ((t (:foreground ,gray :background ,bg :extend t)))) `(org-meta-line ((t (:foreground ,gray)))) - `(org-document-title ((t (:foreground ,yellow :weight bold :height 1.4)))) + `(org-document-title ((t (:foreground ,yellow :height 1.4)))) `(org-document-info ((t (:foreground ,gray+1)))) `(org-document-info-keyword ((t (:foreground ,gray)))) `(org-tag ((t (:foreground ,gray)))) -- cgit v1.2.3