branch: elpa/zenburn-theme
commit e761d5e0c9648e0e2a1810886e658bcec794ffe9
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Inherit font-lock faces for adoc/ledger comments and js2-jsdoc-type
adoc-comment-face and ledger-font-comment-face are obvious kin of
font-lock-comment-face; js2-jsdoc-type uses exactly the doc-face color.
Route them through :inherit so they track user customizations.
---
CHANGELOG.md | 1 +
zenburn-theme.el | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 881ff590b8..fb43ca254c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,6 +25,7 @@
### Changes
+* Route `adoc-comment-face`, `ledger-font-comment-face`, and `js2-jsdoc-type`
through `:inherit` so they track customizations to `font-lock-comment-face` /
`font-lock-doc-face`.
* Expand `adoc-mode` support: cover all 37 faces, give title levels distinct
per-level colors with optional scaling via `zenburn-scale-outline-headlines`,
differentiate `adoc-meta-face` from `adoc-meta-hide-face`, and fix
`adoc-emphasis-face` to render italic instead of bold.
## 2.9.0 (2026-03-29)
diff --git a/zenburn-theme.el b/zenburn-theme.el
index bebe128eaa..97c69d4d11 100644
--- a/zenburn-theme.el
+++ b/zenburn-theme.el
@@ -420,7 +420,7 @@ Also bind `class' to ((class color) (min-colors 89))."
`(adoc-bold-face ((t (:foreground ,zenburn-fg+1 :weight bold))))
`(adoc-code-face ((t (:foreground ,zenburn-green+1 :background
,zenburn-bg-05 :extend t))))
`(adoc-command-face ((t (:foreground ,zenburn-yellow))))
- `(adoc-comment-face ((t (:foreground ,zenburn-green :slant italic))))
+ `(adoc-comment-face ((t (:inherit font-lock-comment-face :slant italic))))
`(adoc-complex-replacement-face ((t (:foreground ,zenburn-magenta))))
`(adoc-emphasis-face ((t (:foreground ,zenburn-fg :slant italic))))
`(adoc-gen-face ((t (:foreground ,zenburn-fg))))
@@ -1233,7 +1233,7 @@ Also bind `class' to ((class color) (min-colors 89))."
`(js2-warning ((t (:underline ,zenburn-orange))))
`(js2-error ((t (:inherit error))))
`(js2-jsdoc-tag ((t (:foreground ,zenburn-green-2))))
- `(js2-jsdoc-type ((t (:foreground ,zenburn-green+2))))
+ `(js2-jsdoc-type ((t (:inherit font-lock-doc-face))))
`(js2-jsdoc-value ((t (:foreground ,zenburn-green+3))))
`(js2-function-param ((t (:foreground, zenburn-orange))))
`(js2-external-variable ((t (:foreground ,zenburn-orange))))
@@ -1263,7 +1263,7 @@ Also bind `class' to ((class color) (min-colors 89))."
`(ledger-font-posting-amount-face ((t (:foreground ,zenburn-orange))))
`(ledger-occur-narrowed-face ((t (:foreground ,zenburn-fg-1 :invisible t))))
`(ledger-occur-xact-face ((t (:background ,zenburn-bg+1))))
- `(ledger-font-comment-face ((t (:foreground ,zenburn-green))))
+ `(ledger-font-comment-face ((t (:inherit font-lock-comment-face))))
`(ledger-font-reconciler-uncleared-face ((t (:foreground ,zenburn-red-1
:weight bold))))
`(ledger-font-reconciler-cleared-face ((t (:foreground ,zenburn-fg :weight
normal))))
`(ledger-font-reconciler-pending-face ((t (:foreground ,zenburn-orange
:weight normal))))