16 lines
712 B
EmacsLisp
16 lines
712 B
EmacsLisp
;; By default, minimal-emacs-package-initialize-and-refresh is set to t, which
|
|
;; makes minimal-emacs.d call the built-in package manager. Since Elpaca will
|
|
;; replace the package manager, there is no need to call it.
|
|
(setq minimal-emacs-package-initialize-and-refresh nil)
|
|
|
|
(setq debug-on-error t)
|
|
|
|
(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)
|