[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/fontaine 168f80f516 3/4: Reword manual on persisting fo
From: |
ELPA Syncer |
Subject: |
[elpa] externals/fontaine 168f80f516 3/4: Reword manual on persisting font configurations |
Date: |
Wed, 7 Sep 2022 10:57:42 -0400 (EDT) |
branch: externals/fontaine
commit 168f80f5168c285f8ac6894f9cba22e2a88a6da8
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Reword manual on persisting font configurations
---
README.org | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/README.org b/README.org
index 8921e956e8..453bfc9ee4 100644
--- a/README.org
+++ b/README.org
@@ -557,11 +557,14 @@ Remember to read the relevant doc strings.
#+vindex: fontaine-current-preset
Themes re-apply face definitions when they are loaded. This is
necessary to render the theme. For certain faces, such as ~bold~ and
-~italic~, this means that their font family may be reset. To avoid such
-a problem, we can instruct them to restore the current font preset.
-Fontaine provides the command ~fontaine-apply-current-preset~. It can
-either be called interactively after loading a theme or be assigned to a
-hook that is ran at the post ~load-theme~ phase.
+~italic~, it means that their font family may be reset (depending on the
+particularities of the theme).
+
+To avoid such a problem, we can arrange to restore the current font
+preset which was applied by ~fontaine-set-preset~. Fontaine provides
+the command ~fontaine-apply-current-preset~. It can either be called
+interactively after loading a theme or be assigned to a hook that is ran
+at the post ~load-theme~ phase.
Some themes that provide a hook are the =modus-themes= and =ef-themes=
(both by Protesilaos), so we can use something like: