Stop tramp from opening remote directories when using ido-mode

*爱你&永不变心* 提交于 2020-01-04 05:33:08

问题


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 tramp-file-name-regexp)


来源:https://stackoverflow.com/questions/10397687/stop-tramp-from-opening-remote-directories-when-using-ido-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!