You only need keyfreq to find frequently used commands.

The frequently used commands should be assigned efficient key bindings.

But you need exclude already optimized commands or commands which cannot be optimized before starting keyfreq.

For example, commands like next-line/previous-line/forward-char/backward-char could be excluded by tweaking variable keyfreq-excluded-commands .

The minimum keyfreq setup,

(require 'keyfreq) (setq keyfreq-excluded-commands '(self-insert-command abort-recursive-edit forward-char backward-char previous-line next-line)) (keyfreq-mode 1) (keyfreq-autosave-mode 1)

My actual keyfreq setup is more complicated.

Below is the eight month keyfreq data of my office computer,