emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/fontaine 92405cb525: Make fontaine-apply-current-preset


From: ELPA Syncer
Subject: [elpa] externals/fontaine 92405cb525: Make fontaine-apply-current-preset work with Emacs 29 theme hook
Date: Tue, 23 May 2023 05:58:12 -0400 (EDT)

branch: externals/fontaine
commit 92405cb5258f9189cb8d9685b12f157a8618ea73
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Make fontaine-apply-current-preset work with Emacs 29 theme hook
---
 fontaine.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/fontaine.el b/fontaine.el
index c071fa549c..8938fe71f2 100644
--- a/fontaine.el
+++ b/fontaine.el
@@ -562,7 +562,7 @@ Set `fontaine-current-preset' to PRESET.  Also see the 
command
     (run-hooks 'fontaine-set-preset-hook)))
 
 ;;;###autoload
-(defun fontaine-apply-current-preset ()
+(defun fontaine-apply-current-preset (&optional _theme)
   "Use `fontaine-set-preset' on `fontaine-current-preset'.
 The value of `fontaine-current-preset' must be one of the keys in
 `fontaine-presets'.
@@ -577,7 +577,10 @@ the post `load-theme' phase (e.g. via a hook) ensures that 
font
 configurations remain consistent.
 
 Some themes that provide hooks of this sort are the
-`modus-themes' and `ef-themes' (both by Protesilaos)."
+`modus-themes', `ef-themes', `standard-themes' (all by
+Protesilaos).  Alternatively, Emacs 29 provides the special
+`enable-theme-functions' hook, which passes the THEME argument
+for this function."
   (interactive)
   (when-let* ((current fontaine-current-preset)
               ((alist-get current fontaine-presets)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]