perf: optimize startup time and fix theme colors
All checks were successful
git-sync-with-mirror / test (push) Successful in 3m5s
git-sync-with-mirror / git-sync (push) Successful in 14s

Performance improvements (2.4s → 0.97s, 60% faster):
- Enable use-package-always-defer for lazy loading
- Add native compilation support (Emacs 28+)
- Defer company, ivy, projectile with :defer
- Move settings from :config to :init where possible
- Remove redundant package-refresh-contents
This commit is contained in:
2026-02-28 00:39:33 -05:00
parent 1aedc8d100
commit 47333c1f4f
9 changed files with 96 additions and 95 deletions

View File

@@ -5,18 +5,23 @@
;;; Code:
(use-package counsel
:after ivy
:config (counsel-mode))
:init
(setq counsel-mode t)
:config
(counsel-mode))
(use-package ivy
:defer 0.1
:defer 0.2
:diminish
:bind (("C-c C-r" . ivy-resume)
("C-x B" . ivy-switch-buffer-other-window))
:commands ivy-mode
:custom
(ivy-count-format "(%d/%d) ")
(ivy-use-virtual-buffers t)
:config (ivy-mode))
:init
(setq ivy-count-format "(%d/%d) "
ivy-use-virtual-buffers t
ivy-fixed-height-minibuffer t
ivy-virtual-abbreviate 'full)
:config
(ivy-mode))
(use-package ivy-rich
:after ivy