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 | 964470da0a169de03a442803fced8a7295314355 (patch) | |
| tree | 7a18e0051dceeb509d6db292a0312a9091907ac8 /themes | |
| parent | 9209881ad5e12e67218a9560df75e6974c10a886 (diff) | |
| download | dotemacs-964470da0a169de03a442803fced8a7295314355.tar.gz dotemacs-964470da0a169de03a442803fced8a7295314355.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.
Diffstat (limited to 'themes')
| -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 3fe14c9aa..8fad4c626 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)))) |
