init
This commit is contained in:
15
pre-early-init.el
Normal file
15
pre-early-init.el
Normal file
@@ -0,0 +1,15 @@
|
||||
;; 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)
|
||||
Reference in New Issue
Block a user