如何阻止 emacs 直接模式打开这么多缓冲区? [英] How do I stop emacs dired mode from opening so many buffers?
问题描述
当我使用 dired
模式时 浏览并找到我想在 Emacs 中打开的文件,dired
会在每次我用 选择一个目录时在查找文件时为我访问的每个目录打开一个新缓冲区输入,这意味着我可以得到很多我不想要的缓冲区:
有没有办法让 dired
重用单个缓冲区?我为 dired
组尝试了 M-x Customize-group
但没有看到任何有希望的东西.
或者,有没有人有一个宏来关闭所有打开的 dired
缓冲区?
使用 a (dired-find-alternate-file
) 而不是 Enter知识库>
另外,请参阅此页面:
http://www.emacswiki.org/emacs/DiredReuseDirectoryBuffer
When I use dired
mode to browse around and find a file I want to open in Emacs, dired
opens a new buffer for each directory I visit when looking for the file each time I select a directory with Enter, which means I can end up with a lot of buffers I don't want:
. * newer 0 Fundamental c:/work/stackoverflow/batch/mydir/newer
% mydir 302 Dired by name c:/work/stackoverflow/batch/mydir/
% batch 616 Dired by name c:/work/stackoverflow/batch/
% stackoverflow 1017 Dired by name c:/work/stackoverflow/
% work 2545 Dired by name c:/work/
* *scratch* 190 Lisp Interaction
% *Completions* 162 Completion List
* *Messages* 2163 Fundamental
Is there any way to make dired
re-use a single buffer? I tried M-x customize-group
for group dired
but didn't see anything promising in there.
Alternatively, does anyone have a macro to close all open dired
buffers?
Use a (dired-find-alternate-file
) instead of Enter
Also, see this page:
http://www.emacswiki.org/emacs/DiredReuseDirectoryBuffer
这篇关于如何阻止 emacs 直接模式打开这么多缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!