如何访问所有 Emacs 命令的历史记录?

如何访问所有 Emacs 命令的历史记录?

我看到有一种方法可以访问迷你缓冲区。我很好奇,除了复杂的操作之外,是否有办法查看 Emacs 中每个操作的历史记录。我的目的是保存这些操作,以便我可以分析它们是否存在可能的重新绑定、别名和改变坏习惯。

答案1

尝试一下这个库键频-https://github.com/dacap/keyfreq

它记录您使用不同命令的频率,按模式分组。您可以使用以下函数获取它们的列表keyfreq-show

(defun keyfreq-show (&optional major-mode-symbol)
  "Show command usage statistics in `keyfreq-buffer'.
If MAJOR-MODE-SYMBOL is given, the function shows the statistics
for that particular major mode only.
With a universal argument, the major-mode of the current buffer
is used as MAJOR-MODE-SYMBOL argument."

或者keyfreq-html

(defun keyfreq-html (filename &optional confirm)
  "Save an HTML file as FILENAME with all the statistics of each mode."

或者keyfreq-json

Xah Lee 写了一篇很好的文章,其中有一些使用旧版本进行 400 多万次命令调用的结果 -http://ergoemacs.org/emacs/command-frequency.html

相关内容