Fix hash-table-p and format type errors on blank startup

This commit is contained in:
Henrik Lissner 2018-05-25 01:26:24 +02:00
parent 843c4d085f
commit 2990d5bd58
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -155,7 +155,7 @@ If RETURN-P, return the message as a string instead of displaying it."
;; 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))
(hash-table-count doom-modules)
(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))))))