I've been cleaning up my config and doing some gitignore grooming and I came to the realization I had over 100 ignore rules in there :O.
Packages should put their caches and files holding state in some "centralized" directory. I propose (locate-user-emacs-file ".cache"). This is an analogy of $XDG_CACHE_HOME which points to $HOME/.cache by default (base dir spec).
It should really be enforced by emacs proper, but for now we can at least do it this way. Ideas?
This is what I end up with. Note that some directories have multiple files under them. (oh, and I autosave scratch buffers there too, I lost my data too many times now :))

I've been cleaning up my config and doing some gitignore grooming and I came to the realization I had over 100 ignore rules in there :O.
Packages should put their caches and files holding state in some "centralized" directory. I propose
(locate-user-emacs-file ".cache"). This is an analogy of$XDG_CACHE_HOMEwhich points to$HOME/.cacheby default (base dir spec).It should really be enforced by emacs proper, but for now we can at least do it this way. Ideas?
This is what I end up with. Note that some directories have multiple files under them. (oh, and I autosave scratch buffers there too, I lost my data too many times now :))