33 lines
910 B
EmacsLisp
33 lines
910 B
EmacsLisp
;;; metrics.el -*- lexical-binding: t; -*-
|
|
|
|
;;; Keyfreq - Track command usage statistics
|
|
(use-package! keyfreq
|
|
:config
|
|
(keyfreq-mode 1)
|
|
(keyfreq-autosave-mode 1)
|
|
(setq keyfreq-file (concat doom-cache-dir "keyfreq")
|
|
keyfreq-file-lock (concat doom-cache-dir "keyfreq.lock"))
|
|
|
|
;; Optional: Exclude commands you don't want to track (uncomment to use)
|
|
;; (setq keyfreq-excluded-commands
|
|
;; '(self-insert-command
|
|
;; forward-char
|
|
;; backward-char
|
|
;; previous-line
|
|
;; next-line))
|
|
)
|
|
|
|
;;; Command Log Mode - visual log of keystrokes and commands
|
|
(use-package! command-log-mode
|
|
:config
|
|
;; Global mode to track everywhere
|
|
;; (global-command-log-mode 1) ; Uncomment if you want it always on (can be noisy)
|
|
|
|
(map! :leader
|
|
(:prefix ("t" . "toggle")
|
|
:desc "Toggle command log" "L" #'clm/toggle-command-log-buffer))
|
|
)
|
|
|
|
|
|
|