gpt4 book ai didi

emacs - Emacs 中有 (repeat-last-command) 吗?

转载 作者:行者123 更新时间:2023-12-03 04:25:33 28 4
gpt4 key购买 nike

我经常深入研究 apropos 和文档,寻找类似以下内容的内容,结果却放弃回到手头的任务:

(重复上一个命令)

执行我刚刚执行的最后一个 C- 或 M- 命令(反弹到 Fn 键)

或有时相关:

(描述最后一个函数)

我刚刚错误地按下了什么键,我想将其效果添加到我的技巧包中。描述键很接近,但需要知道我输入的内容。

我是不是对我值得信赖的伙伴要求太多了?

最佳答案

重复功能由 repeat.el Emacs Lisp 包提供,该包包含在标准 Emacs 发行版中。来自 repeat.el 的文档:

This package defines a command that repeats the preceding command, whatever that was, including its arguments, whatever they were. This command is connected to the key C-x z. To repeat the previous command once, type C-x z. To repeat it a second time immediately after, type just z. By typing z again and again, you can repeat the command over and over.

要查看有关重复命令的其他信息,请在 Emacs 中键入 C-h F Repeat RET

关于emacs - Emacs 中有 (repeat-last-command) 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/275842/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com