center startup summary in spacemacs buffer
This commit is contained in:
parent
7dfa038107
commit
55accac7e5
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue