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?


I would suggest trying this:

(require 'ido)
(add-to-list 'ido-work-directory-list-ignore-regexps tramp-file-name-regexp)



  • Domain name changes - how to redirect with ASP MVC 4
  • Saas with database per client - single point for entry for services. Performance overhead?
  • Why this code may crash in C++ (pointer return)? [closed]
  • Emacs Lisp error at init (file-error “Cannot open load file” “/home/user/a-m”)
  • Unable to get Google OAuth authentication working with React Native and Firebase
  • Best practices for storing sensitive information in source code
  • Is Firebase really Secure?
  • How to sum a row of numbers from text file— Bash Shell Scripting
  • How to pass some more parameters to token endpoint web api 2
  • Benefits of using a CSS framework [duplicate]
  • Showing spinner for Rails 3 UJS gets Type error
  • Can my app be notified when another application starts/stops playing audio?
  • Getting media player state in windows phone 7
  • Web.config system.webserver errors
  • How do I get HTML corresponding to current DOM tree?
  • Checking free space on FTP server
  • Change Inet root folder for iis 7
  • SignalR .NET Client Invoke throws an exception
  • Azure Cloud Service Web Role web pages do not load
  • Fetching methods from BroadcastReceiver to update UI
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • Controls, properties, events and timers running in design time
  • Running a C# exe file
  • Join two tables and save into third-sql
  • How to model a transition system with SPIN
  • Updated Ionic CLI but shows previous version (Windows)
  • Symfony2: How to get request parameter
  • How to show dropdown in excel using jrxml (jasper api)?
  • ORA-29908: missing primary invocation for ancillary operator
  • GridView Sorting works once only
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • WPF Applying a trigger on binding failure
  • python regex in pyparsing
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Android Google Maps API OnLocationChanged only called once
  • Converting MP3 duration time
  • How can I use threading to 'tick' a timer to be accessed by other threads?