Function: keyfreq-groups-major-modes
keyfreq-groups-major-modes is a natively compiled function defined in
keyfreq.el.
Signature
(keyfreq-groups-major-modes TABLE)
Documentation
Group major modes in TABLE by command.
Return a hash table where each entry has COMMAND as key and COUNTER as value.
Source Code
;; Defined in /nix/store/vs0cnjcny583s3d1i80ya8g63h6xkwrn-emacs-packages-deps/share/emacs/site-lisp/elpa/keyfreq-20231107.106/keyfreq.el
(defun keyfreq-groups-major-modes (table)
"Group major modes in TABLE by command.
Return a hash table where each entry has COMMAND as key and
COUNTER as value."
(let ((new-table (make-hash-table :test 'equal :size 128)))
(maphash (lambda (k v)
(puthash (cdr k) (+ (gethash (cdr k) new-table 0) v) new-table))
table)
new-table))