Adding hooks for ido-mode.