Refactored emacs init