Adding hook for ido-mode.