Stop tramp from opening remote directories when using ido-mode
问题 I have a problem with ido-mode. As I cycle through work directories (using M-n), one of the directories is inevitably on a remote server, which makes tramp start authenticating. I know I can edit the ido-work-directory-list-ignore-regexps variable, but maybe I'm misunderstanding that, or how it works with tramp. If the directory is someguy@example.com:/home/public/ what regexp should I use? 回答1: I would suggest trying this: (require 'ido) (add-to-list 'ido-work-directory-list-ignore-regexps