aboutsummaryrefslogtreecommitdiff
path: root/bard-emacs-modules
diff options
context:
space:
mode:
Diffstat (limited to 'bard-emacs-modules')
-rw-r--r--bard-emacs-modules/bard-emacs-ui.el8
1 files changed, 8 insertions, 0 deletions
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 "<f6>") #'fontaine-set-preset)
;; Switching themes
;; (defun bard/disable-all-themes ()