问题标签 [iswitchb-mode]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
613 浏览

emacs - 为什么我要以这种方式启动 iswitchb-mode?

根据 emacs 信息页面,以下是启用 iswitchb 模式的方法:

要启用 Iswitchb 模式,请键入M-x iswitchb-mode或自定义变量iswitchb-modet

所以我在我的 .emacs 中加入了以下内容:

但是,这似乎不起作用。在搜索了emacs wiki后,我发现我需要使用这个:

有人可以解释为什么我需要以这种方式启用它吗?我想更好地理解 elisp 而不仅仅是从地方复制和粘贴东西。

0 投票
2 回答
511 浏览

emacs - 使用 iswitchb 忽略某些缓冲区

GNU Emacs 23.1

我正在使用 iswitchb。但是,当我按下时,C-x b我会得到一个缓冲区列表。但是,我不想显示像从头开始、消息、GNU Emacs 等。只是我自己打开的缓冲区。

所以我正在寻找一种方法来忽略这些缓冲区。这就是我的配置。但是,它不会忽略我不想要的缓冲区。我做错什么了吗?

非常感谢您的任何建议,

0 投票
2 回答
137 浏览

macos - 如何将 iswitch 缓冲区名称限制为 minibuffer 中的 1 行(在 osx 上升级 emacs 24.1 后行为发生变化)?

当我在 OSX 上升级到(vanilla)emacs 24.1 时,使用 iswitch 切换缓冲区的行为似乎有所不同。

当我按 ctrl-x b 切换缓冲区时,它不是将缓冲区列表限制为 1 行,而是通过将迷你缓冲区扩展为几行长来显示每个缓冲区,然后在我输入缓冲区名称时逐步删除缓冲区我正在切换到。

我发现每当我切换缓冲区以分散视觉注意力时,状态栏和迷你缓冲区就会上下颠簸,所以我想恢复以前的行为,这会切断 1 行之后的缓冲区名称。我该怎么做呢?

0 投票
2 回答
121 浏览

emacs - Iswitchb忽略dired缓冲区

有没有办法告诉 iswitchb 基于模式而不是字符串忽略缓冲区?我想排除以 dired 模式打开的缓冲区,这些缓冲区通常数量最多,并且很难在其中的 minibuffer 中找到打开的文件。对此的任何帮助将不胜感激。

0 投票
5 回答
894 浏览

emacs - 在 emacs 中管理数千个缓冲区

我正在进行一个包含一万多个文件的项目。我希望能够轻松浏览这些文件。

iswitchb有这么多文件,模式非常糟糕;icicles速度更好,但我喜欢 iswitchb 的 UI。

建议?


Stefan 请求在iswitchb-mode执行时运行分析器:

0 投票
2 回答
103 浏览

emacs - Is there an Emacs keyboard shortcut for selecting between ambiguous buffer names when switching buffers

In emacs I'm already using iswitchbuffer, but I would still like to be more productive with my buffer switching.

One common case which arises a lot is that I have 6 or 7 identical or near-identical file names. For example:

The problem is that I have to type out most of the directory context when I'm switching buffers.

An existing alternative to typing the directory context is a completion window which pops up saying:e

but this is unsatisfactory as well since I have to the switch to the window and use the mouse to pick one.

What I'd prefer is to use tab or some other key to highlight alternative buffer selections, then enter to select one. Is there a way to do this?