Refactor .emacs.d and .bash_profile