From 4c45169b3f52d5d5a2da52d84b887f4008b96d26 Mon Sep 17 00:00:00 2001 From: Protesilaos Stavrou Date: Wed, 19 Oct 2022 05:52:04 +0300 Subject: [PATCH] Tweak telega code and pre faces The 'telega-entity-type-code' is now subject to the value of the user option 'modus-themes-markup'. By default, it looks like Org =verbatim= entities. The 'telega-entity-type-pre' has the same style as fenced code blocks in Markdown. We cannot inherit from Org or another package, as there is no guarantee it has been loaded by the time the relevant telega buffer is displayed (in general, we do not let faces inherit from arbitrary face groups). Thanks to Pablo Stafforini for the feedback in issue 170 on the GitLab mirror: . --- modus-themes.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modus-themes.el b/modus-themes.el index 007677d..2c9d9a7 100644 --- a/modus-themes.el +++ b/modus-themes.el @@ -7142,9 +7142,9 @@ by virtue of calling either of `modus-themes-load-operandi' and `(telega-button-active ((,class :box ,blue-intense-bg :background ,blue-intense-bg :foreground ,fg-main))) `(telega-button-highlight ((,class :inherit modus-themes-subtle-magenta))) `(telega-chat-prompt ((,class :inherit bold))) - `(telega-entity-type-code ((,class :inherit modus-themes-fixed-pitch))) + `(telega-entity-type-code ((,class :inherit modus-themes-markup-code))) `(telega-entity-type-mention ((,class :foreground ,cyan))) - `(telega-entity-type-pre ((,class :inherit modus-themes-fixed-pitch))) + `(telega-entity-type-pre ((,class :inherit modus-themes-fixed-pitch :background ,bg-dim :foreground ,fg-special-mild :extend t))) `(telega-entity-type-spoiler ((,class :background ,fg-main :foreground ,fg-main))) `(telega-msg-heading ((,class :background ,bg-alt))) `(telega-msg-self-title ((,class :inherit bold)))