Wednesday, June 3, 2015

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"))
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. ;;disable ido caching for problem directories on windows
  2. (require 'ido)
  3. (when (equal system-type 'windows-nt)
  4.   (setq ido-max-dir-file-cache 0)
  5.   (add-to-list 'ido-work-directory-list-ignore-regexps
  6.            "Local Settings")
  7.   (add-to-list 'ido-work-directory-list-ignore-regexps
  8.            "Application Data"))
  9.  
  10.                     ; caching unreliable

Pastebin link

No comments:

Post a Comment