停止在 emacs 上运行的流浪模式 启动
我正在尝试 tramp-mode,但现在我似乎无法摆脱它.. 每当我启动 emacs,它花了大约 20 秒来完成各种与流浪汉相关的初始化......
tramp: Waiting 60s for prompt from remote shell
tramp: Setting up remote shell environment
等等。
我到底如何卸下流浪汉? grep'ing 我的 ~/.emacs.d
除了插件本身之外没有发现任何东西(似乎没有在任何地方加载..)
我已经清除了最近的文件历史记录,但这使得没有不同..
I was trying out tramp-mode, but now I cannot seem to get rid of it.. Whenever I start emacs, it spends about 20 seconds going through various tramp-related initialisations..
tramp: Waiting 60s for prompt from remote shell
tramp: Setting up remote shell environment
..and so on.
How on earth do I unload tramp? grep'ing my ~/.emacs.d
found nothing aside from the plugin itself (which doesn't seem to be loaded anywhere..)
I've cleared the recent-files history, but that made no difference..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
啊哈,我发现了tramp正在加载的位置:
我的
~/.recentf
文件历史记录中有两个文件,它们是用tramp打开的,删除它们会阻止tramp加载..我刚刚发现emacs wiki 的这一部分解释了问题,
Aha, I found where tramp was being loaded:
I had a two files in my
~/.recentf
file-history which were opened with tramp, removing them stops tramp from loading..I just found this section of the emacs wiki explaining the problem,
如果您使用 ido 模式,另一种可能性是 ~/.ido.last 中的列表。 在这种情况下,补救措施就是“rm ~/.ido.last”。
Another possibility is a listing in ~/.ido.last, if you are using ido-mode. In that case, the remedy is just "rm ~/.ido.last".
在我看来,您有一个通过 Tramp 打开的文件,并且在启动时重新打开。 必须设置 emacs 才能恢复会话吗?
It sounds to me like you have a file that is opened via tramp and is being reopened at startup. Have to set emacs to restore your session?
来自 tramp 常见问题解答:
请注意,我还没有尝试过这个,但希望它对你有用!
From the tramp faq:
Note that I haven't tried this but hope it works for you!