rewrite emacs config.