How to view history of various commands in Emacs

后端 未结 3 409
日久生厌
日久生厌 2021-02-07 07:51

Commands entered after pressing M-x can be viewed using the up/down arrow keys.

How can I get a list of all the commands includ

相关标签:
3条回答
  • 2021-02-07 08:10

    So you want the history of of all commands, regardless of where they are executed? I don't know if emacs provides this by default, but you can add your own function to post-command-hook which is executed after every command, so you can use it to collect all the executed commands.

    0 讨论(0)
  • 2021-02-07 08:28

    For a complete list of history, type C-h l (lowercase "L").

    Note: this list is complete in the sense that it keeps all events and commands that happened recently, but it's not complete in the sense that it only keeps track of the last 300 or so events (and corresponding commands).

    0 讨论(0)
  • 2021-02-07 08:34

    I've used mwe-log-commands to make screencasts. It shows events and the commands they trigger as you work in Emacs.


    command-log-mode

    screen shot

    I've just forked it and made it into a proper minor-mode and global-minor-mode along with some other improvements as command-log-mode.

    Give it a shot and file issues against me if the documentation is unclear or if you find any bugs.

    0 讨论(0)
提交回复
热议问题