emacs - 在回显区显示最后一条命令的名称

标签 emacs

我执行了 C-x M-k在 Emacs 中杀死一个段落。回波区显示C-x M-k ,正如预期的那样。

但是,是否可以(也)显示 姓名 刚刚执行的最后一条命令,供引用?这对于学习目的以及确认执行的命令是预期的命令很有用。

最佳答案

这不一定是个好主意,但您可以建议 call-interactively做你所说的:

(defadvice call-interactively (after show-last-command activate)
  "Shows the interactive command that was just run in the message area."
  (unless (eq major-mode 'minibuffer-inactive-mode)
    (message "Ran %s" (ad-get-arg 0))))

要关闭此功能,请运行 (ad-unadvise 'call-interactively) .

关于emacs - 在回显区显示最后一条命令的名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14694940/

相关文章:

emacs - 是否可以将 emacs minibuffer 移动到屏幕顶部?

python-3.x - 将 emacs python 模式解释器更改为 python3.5

emacs - 在 emacs 中启用模式

emacs - 每周重复任务 emacs org-mode

emacs - 如何在 Org 模式下进行内联注释?

c++ - emacs中C++模式注释区域的快捷键是什么?

Emacs 窗口在启动时调整大小

c++ - 如何在不属于类的 emacs 中查找 C 函数?

Emacs Lisp 数字运算(实际上,简单的加法)

终端的 Emacs 输入解码映射