问题标签 [minibuffer]
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.
elisp - 需要帮助重写 elisp 函数以使用 minibuffer+ido 代替 ibuffer
我将 Distel 用于我的 erlang 开发,但用于完成的函数是在 ibuffer 中打印其输出。我想把它放在带有 ido 支持的 minibuffer 中,有人知道怎么做吗?
这是代码:
emacs - 关闭 Emacs minibuffer 中的缩写模式?
我使用 abbrev-mode、smex 和 ido-mode。当我 smex 一个命令时,如何在 minibuffer 中关闭 abbrev-mode?
emacs - Emacs minibuffer 中突出显示的文本
我正在尝试在 Emacs 迷你缓冲区中显示一些突出显示的文本。我知道这是可能的,因为SLIME在显示参数提示时会这样做。但是,我无法通过查看slime.el来了解它是如何完成的。根据我在那里阅读的内容,不应突出显示显示的文本(相关部分从第 3615 行开始)。
我试过了
(message "%s" (propertize "test" 'face 'highlight))
(overlay-put (make-overlay (point-min) (point-min)) 'before-string (propertize "test" 'face 'highlight))
(with-current-buffer (window-buffer (minibuffer-window)) (insert (propertize "test" 'face 'highlight)))
最后一个似乎最接近我想要的,但是当我移动point
时,显示的文本会偶尔出现和消失,以后必须手动删除。我也测试了这里给出的解决方案,它似乎对我也不起作用。不工作的解决方案都做同样的事情;显示文本
在小缓冲区中。
万一这很重要,我在 Debian Wheezy 上运行 Emacs 23.4.1。
emacs - 退出 minibuffer 时保持 Emacs Evil 不会切换到正常模式
我是一个邪恶的 Emacs 用户。然而,当我发现普通模式比常规 Emacs 命令更方便时,我真的只使用普通模式进行花哨的 Vim 风格编辑。(主要是花哨的批量编辑/拉/删除)。但是,我也是 minibuffer 的忠实用户(我用 ido 和 flx 做了很多 Mx,所以我可以避免记住更深奥的命令)。当我这样做时,邪恶会在我退出后自动切换到正常模式。我觉得这很烦人/令人困惑。我怎样才能让它停止?(最好以优雅、非骇客的方式)。
谢谢, PythonNut
编辑:
似乎切换到正常模式发生在所有窗口和所有框架中。
emacs - 在 Emacs 中,如何使用键盘选择完成列表?
当我在 minibuffer 中 tab-complete 并且 Emacs 在新缓冲区中显示完成列表时,如何在不使用鼠标的情况下切换到该缓冲区?
我试过C-x o
了,但这只是切换到第一个缓冲区,我从中进入了迷你缓冲区。
我也试过C-x b
,但那给了我command attempted to use minibuffer while in minibuffer
。
最后我试过C-x <C-right>
了,这给了我cannot switch buffers in minibuffer window
。
编辑:我在我的示例中谈到了迷你缓冲区完成,但是能够从常规缓冲区中访问完成列表(使用键盘)对我来说也很重要,并且不起作用。建议使用M-v
快捷方式,但它似乎只在 访问的迷你缓冲区内工作M-x
,在我尝试过的所有其他缓冲区中,M-v
绑定到scroll down command
并且不会切换到完成列表。我什至似乎不在其他 minibuffers 中工作。例如,它在任何一个调用的 shell 命令 minibuffer 中都不起作用M-!
。
emacs - 如何在不活动期后杀死 minibuffer?
我通常在输入 minibuffer 命令时遇到这种情况,例如打开文件或更改缓冲区,而不是在 minibuffer 中完成它,我开始做其他事情,通常是编辑缓冲区。如果在 minibuffer 中一段时间不活动后没有完成,我希望 minibuffer 简单地忘记命令。可能吗?
如果可以让 minibuffer 在失去焦点后简单地刷新它,那也很棒。现在,我经常得到等待我的 minibuffer 命令队列,这很烦人,因为当我对它们进行 Cg 时,emacs 会更改帧中的缓冲区。
regex - 在 Emacs 的 minibuffer 中禁用默认值
我经常使用查询替换正则表达式,并且不时有很长的表达式。
我的问题如下:
是否有可能隐藏默认表达式?
emacs - How to use a minibuffer-exit-hook with read-string
I have not been able to get the minibuffer-exit-hook
to play nice with read-string
. As far as I can tell, I should no longer be in the minibuffer after finishing up with read-string
. However, the condition (minibufferp)
says I'm still in the minibuffer even though read-string
finished. read-string
is written in C, so I can't add the hook there (i.e., at the tail end of the read-string
function).
"Documentation [minibuffer-exit-hook]: Normal hook run just after exit from minibuffer.
[After thinking a little more about this, I'm pretty sure it's a bug -- so I filed a bug report: bug#16524. As I learn more, I'll update this thread.
emacs - 如何更改 Emacs 中的 minibuffer 位置?
我厌倦了将目光转移到 Emacs 底部的 minibuffer 上。所以我想尽量减少眼球运动。有什么解决办法吗?我想要如下的东西。
- 在当前帧的顶部设置 minibuf 位置。(我不知道它是否有效。)
- 如果我输入 Mx,minibuf 会显示在当前帧的中心。(我认为它很有效。)
emacs - 如何使 minibuffer 不在 Emacs 中显示“Matches (”?
当我在 minibuffer 中编辑文本时,我输入了“(”和“)”。然后 minibuffer 显示类似“Matches (”的消息几秒钟。我不希望显示此消息。如何关闭此消息功能?我认为 show-paren-mode 足以让我检查 minibuffer 中的 paren。
键序列和小缓冲区的示例:
我在 MacOSX 上使用 Emacs 24.3。谢谢。