mwolson.org Blog - /Tech

Mon, 01 Jun 2009

Making annoying Emacs find-file completions go away

I had a guest over who ssh'd into a machine named similarly to one of my top-level directories. This caused M-x find-file to show his machine every time I tried to tab-complete on that directory. Very annoying. It turns out that tramp is to blame: it reads ~/.ssh/known-hosts every time find-file is run. To make that bad completion go away, just remove all mentions of the machine name from ~/.ssh/known_hosts.