本文介绍了如何停止emacs dired模式打开这么多缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用浏览并找到我想在Emacs中打开的文件, dired 为我查找的每个目录打开一个新的缓冲区该文件每次使用选择一个目录,这意味着我可以得到很多不需要的缓冲区:

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 , 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

是有没有办法使 dired 重新使用单个缓冲区?我尝试 Mx自定义组 dired ,但没有看到任何有希望的。

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.

或者,有没有人有一个宏关闭所有打开的 dired 缓冲区?

Alternatively, does anyone have a macro to close all open dired buffers?

推荐答案

使用( dired-find-alternate-file )而不是 (dired-find-alternate-file) instead of

另请参阅此页:

这篇关于如何停止emacs dired模式打开这么多缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 02:50