Fix emacs autosave and tweak config