simulate hotkeys in emacs