13 lines
622 B
EmacsLisp
13 lines
622 B
EmacsLisp
;;; pre-early-init.el --- Pre Early Initalization -*- no-byte-compile: t; lexical-binding: t; -*-
|
|
|
|
(setq minimal-emacs-user-directory (expand-file-name "~/.config/emacs"))
|
|
(minimal-emacs-load-user-init "pre-early-init.el")
|
|
|
|
(defun display-startup-time ()
|
|
"Display the startup time and number of garbage collections."
|
|
(message "Emacs loaded in %.2f seconds (Init only: %.2fs) with %d garbage collections."
|
|
(time-to-seconds (time-since before-init-time))
|
|
(float-time (time-subtract after-init-time before-init-time))
|
|
gcs-done))
|
|
|
|
(add-hook 'emacs-startup-hook #'display-startup-time 100)
|