From b00a30f6a49e20bbc9e5dcfea44bc5080d9c8732 Mon Sep 17 00:00:00 2001 From: "Samuel W. Flint" Date: Tue, 9 Nov 2021 15:14:38 -0600 Subject: [PATCH] Use locate-user-emacs-file The locate-user-emacs-file function is purpose built to find files like this. I'd consider, as a note, changing the default filename to `pomm-state.el`, however. --- pomm.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomm.el b/pomm.el index 23b95f9..198cf69 100644 --- a/pomm.el +++ b/pomm.el @@ -87,7 +87,7 @@ :type 'string) (defcustom pomm-state-file-location - (concat user-emacs-directory "pomm") + (locate-user-emacs-file "pomm") "Location of the pomm state file." :group 'pomm :type 'string)