Function: keyfreq-filter-major-mode
keyfreq-filter-major-mode is a natively compiled function defined in
keyfreq.el.
Signature
(keyfreq-filter-major-mode TABLE MAJOR-MODE)
Documentation
Leave the frequencies of the specified major mode.
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-filter-major-mode (table major-mode)
"Leave the frequencies of the specified major mode.
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)
(when (eq (car k) major-mode)
(puthash (cdr k) (+ (gethash (cdr k) new-table 0) v) new-table)))
table)
new-table))