Emacs: refactoring