This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar key-stats-commands ()) | |
(defun key-stats-record-command () | |
(when (and (stringp (this-command-keys)) | |
(not (eql this-command 'self-insert-command))) | |
(let* ((keys (this-command-keys)) | |
(keys-list (assoc major-mode key-stats-commands)) | |
(command (assoc keys (cdr keys-list)))) | |
(cond (command | |
(incf (cdr command))) |
NewerOlder