This commit is contained in:
2025-11-22 14:04:34 +08:00
parent 5000e00fb6
commit 62dd22b544
3 changed files with 35 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
;;; 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))
)