From 8124d5a893c1d5e3369a3bc03d9ad28754fc0212 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 5 Jun 2018 11:21:24 +0200 Subject: [PATCH] Use package-activated-list for package count Now that this variable is cached, it should always be available. --- core/core-packages.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/core-packages.el b/core/core-packages.el index e86e10d45..ef8afec25 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -149,10 +149,7 @@ they were loaded at startup. If RETURN-P, return the message as a string instead of displaying it." (funcall (if return-p #'format #'message) "Doom loaded %s packages across %d modules in %.03fs" - ;; Certainly imprecise, especially where custom additions to - ;; load-path are concerned, but I don't mind a [small] margin of - ;; error in the plugin count in exchange for faster startup. - (- (length load-path) (length doom-site-load-path)) + (length package-activated-list) (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))))))