Hacker News new | ask | show | jobs
by TacticalCoder 1616 days ago
for a reason I forgot my .emacs.d/ ("hidden" dir) is a symlink to emacsdotd/ (not hidden) and, yup, it's in git. Some are going to say: "why stop there!? version your entire user dir" and I can see the appeal (but haven't tried yet).

I'm one of those who track everything Emacs: including all the packages. When I upgrade packages, I first check that nothing broke then I commit "Bump avy to 20220114" or whatever. This way I can easily share the exact same config on several machines/several user accounts and I know I can easily roll back to a known fully working setup. YMMV.

1 comments

If by "version your entire user dir" you mean "version all your manually edited configs", that can work.

Init a git repo in your $HOME, add a .gitignore that by default excludes everything then manually add just the files and folders you want to track.

Especially if you want to publish the repo, be careful, because it's <<extremely>> easy to accidentally expose confidential stuff.

Or just use something like GNU stow or chezmoi.