我执行了 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/