I need to be able to customize the Emacs environment on the fly. I probably could write something like this with Nix butt I currently don't know a good way.