本文介绍了如何阻止 emacs 直接模式打开这么多缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用 dired
模式时 浏览并找到我想在 Emacs 中打开的文件,dired
会在每次我用 ,这意味着我可以得到很多我不想要的缓冲区:
有没有办法让 dired
重用单个缓冲区?我为 dired
组尝试了 M-x Customize-group
但没有看到任何有希望的东西.
或者,有没有人有一个宏来关闭所有打开的 dired
缓冲区?
解决方案
使用 (dired-find-alternate-file
) 而不是 , 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 (dired-find-alternate-file
) instead of
Also, see this page:
http://www.emacswiki.org/emacs/DiredReuseDirectoryBuffer
这篇关于如何阻止 emacs 直接模式打开这么多缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!