diff options
| author | Protesilaos Stavrou <info@protesilaos.com> | 2022-08-23 08:50:27 +0300 |
|---|---|---|
| committer | Protesilaos Stavrou <info@protesilaos.com> | 2022-08-23 08:50:27 +0300 |
| commit | e05c87ac456b8c857ac240d5838afc2fb396fc5c (patch) | |
| tree | 4abde052beb02d399e9bc361afa207a554de7be8 /ef-themes.el | |
| parent | d2eb3426bd6181051d7b57b103208a9819b40cc4 (diff) | |
Explicitly support 'bold' and 'italic' faces
The default definition of 'italic' has conditionality which we do not
want, such as drawing an underline if the font does not have italics.
Styling it here prevents that from happening: the font without italics
will simply use the upright style.
Adding 'bold' here is just for clarity. Its default definition is fine.
Diffstat (limited to 'ef-themes.el')
| -rw-r--r-- | ef-themes.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ef-themes.el b/ef-themes.el index beafc34..55a3654 100644 --- a/ef-themes.el +++ b/ef-themes.el @@ -526,6 +526,8 @@ Helper function for `ef-themes-preview-colors'." ;;;; all basic faces `(default ((,c :background ,bg-main :foreground ,fg-main))) `(cursor ((,c :background ,cursor))) + `(bold ((,c :weight bold))) + `(italic ((,c :slant italic))) `(bold-italic ((,c :inherit (bold italic)))) `(region ((,c :background ,bg-region))) `(comint-highlight-input ((,c :inherit bold))) |
