summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-06-10 15:10:28 +0200
committercashmere <cashmere@autistici.org>2026-06-10 15:10:28 +0200
commit0a0d723d05f8d44ab988b521ac7933c20168ccd1 (patch)
treef642356b5c0e5a2b8a200f9e75abf246123a560d /init.el
parent69967a1b030cffff18d439f3496aeec536c7afe1 (diff)
downloademacs-0a0d723d05f8d44ab988b521ac7933c20168ccd1.tar.gz
sync
Diffstat (limited to 'init.el')
-rw-r--r--init.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/init.el b/init.el
index 333e6da..7ecb63b 100644
--- a/init.el
+++ b/init.el
@@ -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)