rewrite emacs config