Hard-coding a file like this should be avoided, ever since Emacs also supports XDG-compliant configurations paths. Other than that, it might be better to not even store this under XDG_CONFIG_HOME but XDG_DATA_HOME, as automatically generated files are not configurations but data. -- Philip K.