有没有办法自动关闭Emacs中的文件名完整缓冲区? [英] Is there any way to automatically close filename completetion buffers in Emacs?

查看:89
本文介绍了有没有办法自动关闭Emacs中的文件名完整缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,当您通过C-x-C-f打开文件时,您可以TAB完成文件名,如果有多个可能的完成,则会弹出一个包含可能的完成列表的完成缓冲区。问题是,在您打开文件之后,缓冲区中的窗口切换回正常,但不会关闭。在文件打开后,有没有办法让这些缓冲区自动关闭?

解决方案

虽然不直接解决您的你考虑过 ido-mode 的问题作为打开文件的机制?



ido-模式将绑定 Cx Cf ido-find-file 这允许您交互式打开文件(选择在minibuffer Cs 和各种其他漂亮功能之间的名称冲突之间)我发现它是一个更容易的查找文件的方法,它将摆脱 *完成* 缓冲区。


For example, when you open a file via C-x-C-f, you can TAB complete file names, and if there are more than one possible completions, it will pop open a completion buffer with a list of possible completions. The problem is, after you've opened the file, the window the buffer was in switches back to normal, but it doesn't close. Is there any way I can make those buffers close automatically after the file has been opened?

解决方案

Although it does not directly solve your problem have you considered ido-mode as a mechanism for opening files?

ido-mode will bind C-x C-f to ido-find-file this allows you to interactively opening files (selecting between name collisions from within the minibuffer C-s and various other nifty features) I find it a much easier method of finding files and it will get rid of the *Completions* buffer altogether.

这篇关于有没有办法自动关闭Emacs中的文件名完整缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆