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

@@ -25,15 +25,19 @@
;; =================
(setq package-native-compile t)
(setq package-check-signature 'allow-unsigned)
(setq read-process-output-max (* 1024 1024))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(unless (assoc 'melpa package-archives)
(package-refresh-contents))
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(setq use-package-always-ensure t)
(require 'use-package)
(setq use-package-always-ensure t
use-package-always-defer t
use-package-compute-statistics t)
;; =====================================================
;; End use-package
;; =====================================================