From 7fa437a632b4d48dbfcc2309745369c5c7a2995f Mon Sep 17 00:00:00 2001 From: bard Date: Thu, 18 Jan 2024 06:03:26 -0500 Subject: fontaine update on theme & save --- bard-emacs-modules/bard-emacs-ui.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bard-emacs-modules') diff --git a/bard-emacs-modules/bard-emacs-ui.el b/bard-emacs-modules/bard-emacs-ui.el index c49aed2..f266abb 100644 --- a/bard-emacs-modules/bard-emacs-ui.el +++ b/bard-emacs-modules/bard-emacs-ui.el @@ -80,9 +80,17 @@ :default-family "Monospace" ))) +;; save file +(setq fontaine-latest-state-file + (locate-user-emacs-file "fontaine-latest-state.eld")) ;; Mixed pitch on modus and ef themes (setq modus-themes-mixed-fonts t) (setq ef-themes-mixed-fonts t) +;; preserve fonts when switching themes +(dolist (hook '(modus-themes-after-load-theme-hook ef-themes-post-load-hook)) + (add-hook hook #'fontaine-apply-current-preset)) + +(define-key global-map (kbd "") #'fontaine-set-preset) ;; Switching themes ;; (defun bard/disable-all-themes () -- cgit v1.2.3