Rewrite the setup of the .cache/ directory for emacs