In NixOS I use home-manager to bootstrap files and folders under FreeDesktop
config $XDG_CONFIG_HOME
. I use Chemacs as an Emacs profile switcher.
The default
directory has my main configuration. If you want to try it, just
copy it to ~/.emacs.d
or ~/.config/emacs
. For example:
[ -f ~/.emacs ] && mv ~/.emacs ~/.emacs.bak
[ -d ~/.emacs.d ] && mv ~/.emacs.d ~/.emacs.d.bak
[ -d ~/.config/emacs ] && mv ~/.config/emacs ~/.config/emacs.bak
cp -a ./default ~/.config/emacs
Note that I only support Linux. I no longer test my configuration on Windows or OSX.