diff options
| author | bard <[email protected]> | 2024-01-18 06:03:26 -0500 |
|---|---|---|
| committer | bard <[email protected]> | 2024-01-18 06:03:26 -0500 |
| commit | 7fa437a632b4d48dbfcc2309745369c5c7a2995f (patch) | |
| tree | 2eebc5b6501ba493f608fcfa11ad411f46bc87c0 | |
| parent | 4d4e304446e45e0353ffc712ccaabcc4a426b1ff (diff) | |
fontaine update on theme & save
| -rw-r--r-- | bard-emacs-modules/bard-emacs-ui.el | 8 |
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 () |
