aboutsummaryrefslogtreecommitdiff
path: root/doom.d/config.org
diff options
context:
space:
mode:
authorAChavali <aryadevchavali1@gmail.com>2019-12-30 14:47:41 +0000
committerAChavali <aryadevchavali1@gmail.com>2019-12-30 14:52:18 +0000
commitce6409843102e79a39d5b96c6e4f066df75ffeed (patch)
treefc6f87bd588bc8159c7708051d7e4e28c821d384 /doom.d/config.org
parent1040f95e695bcdbe5c3ac60e49e4ddd3286565ed (diff)
downloaddotfiles-ce6409843102e79a39d5b96c6e4f066df75ffeed.tar.gz
dotfiles-ce6409843102e79a39d5b96c6e4f066df75ffeed.tar.bz2
dotfiles-ce6409843102e79a39d5b96c6e4f066df75ffeed.zip
~changed doom-display-benchmark-h for message
Diffstat (limited to 'doom.d/config.org')
-rw-r--r--doom.d/config.org13
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*")