-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: A minor mode to automatically save, restore, and update presets #2
Comments
From: Adam Porter ***@***.***>
Date: Tue, 12 Dec 2023 16:40:44 -0800
Hi Prot,
Hello Adam,
Quick suggestion I thought of as I read through the manual: There
could be a `fontaine-mode` that would add
`fontaine-store-latest-preset` to `kill-emacs-hook`,
`fontaine-restore-latest-preset` to, e.g. `after-init-hook`, and
advise `enable-theme`, etc.
Yes, this make sense! I will have to give it a try. Right now I use
these but a minor mode is easier:
;; The other side of `fontaine-restore-latest-preset'.
(add-hook 'kill-emacs-hook #'fontaine-store-latest-preset)
;; Persist font configurations while switching themes. The
;; `enable-theme-functions' is from Emacs 29.
(add-hook 'enable-theme-functions #'fontaine-apply-current-preset)
Thanks for your work on Fontaine!
You are welcome!
…--
Protesilaos Stavrou
https://protesilaos.com
|
protesilaos
added a commit
that referenced
this issue
Feb 22, 2024
Thanks to Adam Porter (alphapapa) for suggesting this in issue 2: <#2>.
Hello again! I just pushed the change for this. Thank you! |
Thanks, Prot! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Prot,
Quick suggestion I thought of as I read through the manual: There could be a
fontaine-mode
that would addfontaine-store-latest-preset
tokill-emacs-hook
,fontaine-restore-latest-preset
to, e.g.after-init-hook
, and adviseenable-theme
, etc.Thanks for your work on Fontaine!
The text was updated successfully, but these errors were encountered: