wip: feat: Defer many packages

Shaving MILLISECONDS off our startup time!!!  Fuck yes!

I've measured the average startup time to be 0.68s in the previous commit, and an average of 0.52 with this commit.
This commit is contained in:
Madeleine Sydney
2025-01-08 06:52:18 -07:00
parent 27e78453e3
commit ab10e0ca56
9 changed files with 138 additions and 79 deletions

View File

@@ -19,21 +19,18 @@
(".*"
,(file-name-concat syd-cache-dir "autosave") t))
kept-new-versions 5
delete-old-versions t
save-place-file (file-name-concat syd-cache-dir "places")
bookmark-default-file (file-name-concat syd-data-dir "bookmarks")
recentf-save-file (file-name-concat syd-data-dir "recentf")))
delete-old-versions t))
;; Save your cursor position in recently-opened files.
(use-package saveplace
:config
(save-place-mode 1))
:hook (on-first-file . save-place-mode)
:custom (save-place-file (file-name-concat syd-cache-dir "places")))
;; Keep track of recently-visited files.
(use-package recentf
:config
(add-hook 'find-file-hook #'recentf-save-list)
(recentf-mode 1))
:hook ((on-first-file . recentf-mode)
(find-file-hook . recentf-save-list))
:custom (recentf-save-file (file-name-concat syd-data-dir "recentf")))
(provide 'syd-autosave)