diff options
| author | cashmere <cashmere@autistici.org> | 2026-06-10 15:10:28 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-06-10 15:10:28 +0200 |
| commit | 0a0d723d05f8d44ab988b521ac7933c20168ccd1 (patch) | |
| tree | f642356b5c0e5a2b8a200f9e75abf246123a560d /init.el | |
| parent | 69967a1b030cffff18d439f3496aeec536c7afe1 (diff) | |
| download | emacs-0a0d723d05f8d44ab988b521ac7933c20168ccd1.tar.gz | |
sync
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -48,7 +48,8 @@ ;; Install use-package support (elpaca (elpaca-use-package :wait t) (elpaca-use-package-mode) - (setq elpaca-use-package-by-default t)) + (setq elpaca-use-package-by-default t + use-package-compute-statistics t)) ;; Install org before tangling config.org (elpaca (org :wait t)) @@ -56,6 +57,14 @@ ;; Shadow built-in transient with newer version before magit loads (elpaca (transient :wait t)) +;; Startup profiling: benchmark-init records require/load wallclock so the +;; tangled config.el load below is fully measured. Inspect afterwards with +;; M-x benchmark-init/show-durations-tree (or use-package-report for use-package). +(elpaca (benchmark-init :wait t) + (require 'benchmark-init) + (benchmark-init/activate)) +(add-hook 'elpaca-after-init-hook #'benchmark-init/deactivate) + ;; Load config: tangle only when org is newer than the tangled .el. ;; Saves the entire org parse on hot starts. (let* ((dir user-emacs-directory) |
