branch: externals/fontaine commit 43d199a469afa029cfa516131e994a69742cfa7f Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Mention no-littering package Thanks to Christopher League for including fontaine-latest-state-file in the no-littering setup: <https://github.com/emacscollective/no-littering/commit/76b7335202a5b6ddc6b6798a2e2fd5b09df57dc2> Discussion on the Fontaine mailing list: <https://lists.sr.ht/~protesilaos/fontaine/%3c87sfpop0dm....@contrapunctus.net%3E> --- README.org | 15 ++++++++++----- fontaine.el | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/README.org b/README.org index 77611d4e0a..aae05ec1f3 100644 --- a/README.org +++ b/README.org @@ -149,11 +149,16 @@ which is the same as what was described above for ~fontaine-set-preset~. #+findex: fontaine-store-latest-preset #+findex: fontaine-restore-latest-preset The latest value of ~fontaine-set-preset~ is stored in a file whose -location is defined in ~fontaine-latest-state-file~. Saving is done by -the ~fontaine-store-latest-preset~ function, which should be assigned to -a hook (e.g. ~kill-emacs-hook~). To restore that value, the user can -call the function ~fontaine-restore-latest-preset~ (such as by adding it -to their init file). +location is defined in ~fontaine-latest-state-file~ (normally part of +the =.emacs.d= directory). Saving is done by the function +~fontaine-store-latest-preset~, which should be assigned to a hook +(e.g. ~kill-emacs-hook~). To restore that value, the user can call the +function ~fontaine-restore-latest-preset~ (such as by adding it to their +init file). + +For users of the =no-littering= package, ~fontaine-latest-state-file~ is +not stored in their =.emacs.d=, but in a standard directory instead: +https://github.com/emacscollective/no-littering. As for the name of this package, it is the French word for "fountain" which, in turn, is what the font or source is. However, I will not diff --git a/fontaine.el b/fontaine.el index babbb7c9c7..8533587273 100644 --- a/fontaine.el +++ b/fontaine.el @@ -96,11 +96,16 @@ ;; which is the same as what was described above for `fontaine-set-preset'. ;; ;; The latest value of `fontaine-set-preset' is stored in a file whose -;; location is defined in `fontaine-latest-state-file'. Saving is done by -;; the `fontaine-store-latest-preset' function, which should be assigned to -;; a hook (e.g. `kill-emacs-hook'). To restore that value, the user can -;; call the function `fontaine-restore-latest-preset' (such as by adding it -;; to their init file). +;; location is defined in `fontaine-latest-state-file' (normally part of +;; the `.emacs.d' directory). Saving is done by the function +;; `fontaine-store-latest-preset', which should be assigned to a hook +;; (e.g. `kill-emacs-hook'). To restore that value, the user can call the +;; function `fontaine-restore-latest-preset' (such as by adding it to their +;; init file). +;; +;; For users of the `no-littering' package, `fontaine-latest-state-file' is +;; not stored in their `.emacs.d', but in a standard directory instead: +;; <https://github.com/emacscollective/no-littering>. ;; ;; As for the name of this package, it is the French word for "fountain" ;; which, in turn, is what the font or source is. However, I will not