Use ido only when ido-mode enabled.

Fix according to issue "ido all the time" #56 
Please, merge with master.