center startup summary in spacemacs buffer

This commit is contained in:
deb0ch 2016-08-25 16:02:30 +02:00 committed by Eivind Fonn
parent 7dfa038107
commit 55accac7e5

View file

@ -1926,13 +1926,17 @@ to select one."
configuration-layer--used-packages))) configuration-layer--used-packages)))
(spacemacs-buffer/insert-page-break) (spacemacs-buffer/insert-page-break)
(spacemacs-buffer/append (spacemacs-buffer/append
(format "\n%s packages loaded in %.3fs (e:%s r:%s l:%s b:%s)\n" (format "\n%s packages loaded in %.3fs (e:%s r:%s l:%s b:%s)"
(cadr (assq 'total stats)) (cadr (assq 'total stats))
configuration-layer--spacemacs-startup-time configuration-layer--spacemacs-startup-time
(cadr (assq 'elpa stats)) (cadr (assq 'elpa stats))
(cadr (assq 'recipe stats)) (cadr (assq 'recipe stats))
(cadr (assq 'local stats)) (cadr (assq 'local stats))
(cadr (assq 'built-in stats)))))) (cadr (assq 'built-in stats))))
(with-current-buffer (get-buffer-create spacemacs-buffer-name)
(let ((buffer-read-only nil))
(spacemacs-buffer//center-line)
(insert "\n")))))
(defun configuration-layer/load-or-install-protected-package (defun configuration-layer/load-or-install-protected-package
(pkg &optional log file-to-load) (pkg &optional log file-to-load)