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.
This commit is contained in:
Samuel W. Flint 2021-11-09 15:14:38 -06:00 committed by GitHub
parent 081c1c29f6
commit b00a30f6a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@
:type 'string) :type 'string)
(defcustom pomm-state-file-location (defcustom pomm-state-file-location
(concat user-emacs-directory "pomm") (locate-user-emacs-file "pomm")
"Location of the pomm state file." "Location of the pomm state file."
:group 'pomm :group 'pomm
:type 'string) :type 'string)