diff options
author | AChavali <aryadevchavali1@gmail.com> | 2019-12-30 14:47:41 +0000 |
---|---|---|
committer | AChavali <aryadevchavali1@gmail.com> | 2019-12-30 14:52:18 +0000 |
commit | ce6409843102e79a39d5b96c6e4f066df75ffeed (patch) | |
tree | fc6f87bd588bc8159c7708051d7e4e28c821d384 | |
parent | 1040f95e695bcdbe5c3ac60e49e4ddd3286565ed (diff) | |
download | dotfiles-ce6409843102e79a39d5b96c6e4f066df75ffeed.tar.gz dotfiles-ce6409843102e79a39d5b96c6e4f066df75ffeed.tar.bz2 dotfiles-ce6409843102e79a39d5b96c6e4f066df75ffeed.zip |
~changed doom-display-benchmark-h for message
-rw-r--r-- | doom.d/config.org | 13 |
1 files changed, 13 insertions, 0 deletions
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*") |