Sometimes, when you are doing a emacs demo, or teaching emacs, you want emacs to display the keys you typed, and the associated command you just called.
mwe-log-commands.el shows the keys and associated command. It's on MELPA. To install, call
list-packages. 〔➤ Emacs: How to Install Packages Using ELPA, MELPA〕
To start it, call
mwe:log-keyboard-commands. Then, call
For example, here's what it shows for me. (Note: my keys are strange because i don't use any of emacs default keys. Normally, you would see lots Ctrl ＆ Alt key combinations.)
3 delete-other-windows <f14> xah-close-current-buffer r forward-word 3 delete-other-windows g backward-word r forward-word g backward-word 4 split-window-below <f11> xah-previous-user-buffer [2 times] <f12> xah-next-user-buffer <menu> 3 delete-other-windows <menu> g isearch-forward g isearch-printing-char [4 times] <left> left-char <next> scroll-up-command <mouse-5> mwheel-scroll [3 times] 4 split-window-below <menu> c xah-open-file-fast g backward-word d xah-beginning-of-line-or-block [3 times] <tab> e xah-html-wrap-html-tag <tab> d insert-date-tag o other-window <menu> f xah-copy-file-path o other-window k yank o other-window s xah-end-of-line-or-block [14 times] d xah-beginning-of-line-or-block r forward-word [3 times] 8 xah-extend-selection j xah-copy-line-or-region o other-window k yank d xah-beginning-of-line-or-block g backward-word [5 times] 7 xah-select-current-line , xah-shrink-whitespaces r forward-word g backward-word 7 xah-select-current-line <menu> u x xah-insert-tortoise-shell-bracket〔〕 <tab> r c xah-bracket→html <end> x6-insert-mode-activate [2 times] <home> x6-command-mode-activate 3 delete-other-windows 4 split-window-below M-f isearch-forward s isearch-printing-char [4 times] <return> isearch-exit v xah-forward-close-bracket 9 xah-select-text-in-quote j xah-copy-line-or-region
mwe-log-commands.el is really nice! Thanks to Sacha Chua and her reader for recommendation! (and thanks to Michael Weber for writing mwe-log-commands.el)
i remember i was using another one that i learned from one of the comments at Jon Snader (jcs) 's blog (irreal.org). But i didn't like that one, because that one flashes the key on your screen but is gone the next second, and it also doesn't show the command, which i need.
i tried to write one myself last year, but didn't succed after 10 minutes.
as i say: FANTASTIC!