emacs: Define motion bindings for ido, undo-tree and auto-complete modes.