From ce6409843102e79a39d5b96c6e4f066df75ffeed Mon Sep 17 00:00:00 2001 From: AChavali Date: Mon, 30 Dec 2019 14:47:41 +0000 Subject: ~changed doom-display-benchmark-h for message --- doom.d/config.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doom.d/config.org b/doom.d/config.org index 75a952f..38f0759 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -187,6 +187,19 @@ other stuff as well, cos Henrik may remove the Wakatime module. #+END_SRC ** Dashboard #+BEGIN_SRC elisp +(defun doom-display-benchmark-h (&optional return-p) + "Display a benchmark, showing number of packages and modules, and how quickly +they were loaded at startup. + +If RETURN-P, return the message as a string instead of displaying it." + (funcall (if return-p #'format #'message) + "εmacs loaded %d packages, %d modules in %.03fs" + (- (length load-path) (length doom--initial-load-path)) + (if doom-modules (hash-table-count doom-modules) 0) + (or doom-init-time + (setq doom-init-time + (float-time (time-subtract (current-time) before-init-time)))))) + (setq fancy-splash-image "~/Pictures/space.png") ; splash image (setq +doom-dashboard-name "*dashboard*") -- cgit v1.2.3-13-gbd6f