Refine emacs config