Function: keyfreq-mode
keyfreq-mode is an interactive and natively compiled function defined
in keyfreq.el.
Signature
(keyfreq-mode &optional ARG)
Documentation
Keyfreq mode records number of times each command was
called making it possible to access usage statistics through various keyfreq-* functions.
This is a global minor mode. If called interactively, toggle the
Keyfreq mode mode. If the prefix argument is positive, enable the
mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate (default-value \=keyfreq-mode)'.
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/vs0cnjcny583s3d1i80ya8g63h6xkwrn-emacs-packages-deps/share/emacs/site-lisp/elpa/keyfreq-20231107.106/keyfreq.el
;;;###autoload
(define-minor-mode keyfreq-mode
"Keyfreq mode records number of times each command was
called making it possible to access usage statistics through
various keyfreq-* functions."
:global t
:init-value nil
:lighter nil
:keymap nil
:group 'keyfreq
(if keyfreq-mode
(add-hook 'pre-command-hook 'keyfreq-pre-command-hook)
(remove-hook 'pre-command-hook 'keyfreq-pre-command-hook)))