且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有没有办法自动关闭Emacs中的文件名完整缓冲区?

更新时间:2023-11-08 09:16:40

虽然不直接解决您的你考虑过 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.