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
+1
View File
@@ -7,6 +7,7 @@
(load! "org")
(load! "ai")
(load! "inbox")
(load! "metrics")
;; Performance tweaks
(setq gc-cons-threshold 100000000 ; Increase GC threshold to 100MB
+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))
)
+4
View File
@@ -50,3 +50,7 @@
(package! claude-code
:recipe (:host github :repo "stevemolitor/claude-code.el" :branch "main" :depth 1
:files ("*.el" (:exclude "images/*"))))
;; Usage metrics and key tracking
(package! keyfreq)
(package! command-log-mode)