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

@@ -10,8 +10,6 @@
;;; Time Mark
(setq emacs-load-start-time (current-time))
(setq package-check-signature 'allow-unsigned)
;;; Fix TLS emacs 26.x
(if (version<= emacs-version "26.2")
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
@@ -55,6 +53,12 @@
(setq user-emacs-directory default-directory))
(push (concat user-emacs-directory "modules") load-path)
;;; Native compilation (Emacs 28+)
(when (fboundp 'native-comp-available-p)
(setq native-comp-async-report-warnings-errors nil
native-comp-deferred-compilation t
native-comp-jit-compilation t))
;;;------------------------------
;;; Features
;;;------------------------------