Disable emacs ido caching for bad directories on windows

I’ve been having a problem with ido screwing up on windows. Here is a fix.

;;disable ido caching on windows
(require 'ido)
(when (equal system-type 'windows-nt)
(setq ido-max-dir-file-cache 0)
(add-to-list 'ido-work-directory-list-ignore-regexps
"Local Settings")
(add-to-list 'ido-work-directory-list-ignore-regexps
"Application Data"))

http://pastebin.com/embed_js.php?i=MJX8NQ7X

Pastebin link

Advertisements