refactor .emacs