;;; pre-early-init --- -*- no-byte-compile: t; lexical-binding: t; -*- (setq custom-file (expand-file-name "custom.el" user-emacs-directory) user-emacs-directory (expand-file-name "var/" minimal-emacs-user-directory)) (defun display-startup-time () "Display the startup time and number of garbage collections." (message "Emacs init loaded in %.2f seconds (Full emacs-startup: %.2fs) with %d garbage collections." (float-time (time-subtract after-init-time before-init-time)) (time-to-seconds (time-since before-init-time)) gcs-done)) (add-hook 'emacs-startup-hook #'display-startup-time 100)