implement emacs ctrl-x, o functionality