feat(emacs): display startup time

This commit is contained in:
2025-09-20 14:04:35 -06:00
parent 7278d2e498
commit b2106793fb
2 changed files with 16 additions and 1 deletions

View File

@@ -44,7 +44,8 @@
syd/ptemplate
syd/popups
syd/pdf
syd/project))
syd/project
syd/display-startup-time))
(defun syd-random-permutation (lst &optional seed)
"Return a random permutation of list LST using SEED as the random state. The

View File

@@ -0,0 +1,14 @@
;;; -*- lexical-binding: t; -*-
(defun syd-display-startup-time ()
(message "Emacs loaded in %s with %d garbage collections."
(format "%.3f seconds"
(float-time
(time-subtract after-init-time before-init-time)))
gcs-done))
(use-package emacs
:hook
(emacs-startup-hook . syd-display-startup-time))
(provide 'syd/display-startup-time)