diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-26 13:15:59 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-26 13:15:59 -0500 |
| commit | db83a4975be50b5c579b0a075acd952f8135a73f (patch) | |
| tree | 3666849ac9f1042f30c9d3a07e3991f65126c850 | |
| parent | 53a447b36876b18302ac4f2d9b7cc1a6cb3407c5 (diff) | |
| download | dotemacs-db83a4975be50b5c579b0a075acd952f8135a73f.tar.gz dotemacs-db83a4975be50b5c579b0a075acd952f8135a73f.zip | |
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.
| -rw-r--r-- | themes/dupre-faces.el | 14 |
1 files changed, 9 insertions, 5 deletions
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)))) |
