Configuration for ido-mode, which already comes with Emacs.