Files
sydnix/users/crumb/programs/emacs/modules/syd-display-startup-time.el
Madeleine Sydney ab10e0ca56 wip: feat: Defer many packages
Shaving MILLISECONDS off our startup time!!!  Fuck yes!

I've measured the average startup time to be 0.68s in the previous commit, and an average of 0.52 with this commit.
2025-01-17 16:28:45 -07:00

15 lines
431 B
EmacsLisp

;;; syd-display-startup-time.el -*- 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)