Use ido only when ido-mode enabled.