refactored emacs startup