refactor emacs settings