FIX dashboard now uses list of straight-built packages to determine

number of activated packages
This commit is contained in:
ndwarshuis 2019-05-25 10:00:49 -04:00
parent 54fe5f30c7
commit a2e5a05bb6
1 changed files with 4 additions and 0 deletions

View File

@ -438,6 +438,10 @@ Instead use a dashboard, and display days until predicted death...you know, as a
(use-package dashboard
:straight t
;; trick the banner to think activated packages are those built by straight
;; TODO this is a silly hack and probably not necessary in the long run
;; (why do I care about how many packages are loaded?)
:init (setq package-activated-list (hash-table-count straight--build-cache))
:config
(setq dashboard-banner-logo-title nil
dashboard-startup-banner (no-littering-expand-etc-file-name