emacs: refactor