Refactor emacs keybinds.