TGViewer
/r/emacs /r/emacs @r_emacs · 79 subscribers
Post #28613 11
What other directory variables besides "user-emacs-directory" does Emacs use for plugin data and files which don't belong in version control? Are there some conventions or good practices here?

Every other plugin and package likes to place its configuration data in "user-emacs-directory" which is where init.el and other files live and it makes the "user-emacs-directory" cluttered, leaving you with so many entries in .gitignore.


Examples of this are:

custom.el
places.eld
projectile-bookmarks.eld
tramp
transient
eln-cache
elpa

Is there some convention for setting locations for such files?

I guess this means setting a lot of them in early-init.el which I prefer over init.el, or configuring them in use-package.

Are there some built-in Emacs variables for data like this, or is it every package and plugin using a directory based of "user-emacs-directory"?

https://redd.it/1wsgxct
@r_emacs
Reddit From the emacs community on Reddit Explore this post and more from the emacs community
More from @r_emacs
  1. Sep 29, 2026Does which-key have the option to list long commands completely instead of truncating them…
  2. Sep 29, 2026package-vc vs elapaca or straight. I have been using elpaca for the last year across diffe…
  3. Sep 29, 2026Question for Emacs + Evil Users. I've been using Emacs with vanilla keybindings, and latel…
  4. Sep 29, 2026Background color of active regions in code with AucTeX preview I recently tried the new au…
  5. Sep 28, 2026Which Emacs lisp indentation you guys use? I was using the Emacs Lisp Style Guide indentat…
  6. Sep 28, 2026Switching To Emacs as a Neovim User https://eliasebner.com/blog/thoughts/switching-to-emac…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →