aboutsummaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorAstounds <kirito@disroot.org>2026-02-28 00:39:33 -0500
committerAstounds <kirito@disroot.org>2026-02-28 00:39:33 -0500
commit47333c1f4f6fd88c4f737d60bf0d796c357861a2 (patch)
tree5cb37c3ae69f7fc252e2db078f654d94c9f4bff8 /init.el
parent1aedc8d100b656b26f8bd83a98e947b009a1b977 (diff)
downloademacs-personal-47333c1f4f6fd88c4f737d60bf0d796c357861a2.tar.lz
emacs-personal-47333c1f4f6fd88c4f737d60bf0d796c357861a2.tar.xz
emacs-personal-47333c1f4f6fd88c4f737d60bf0d796c357861a2.zip
perf: optimize startup time and fix theme colorsHEADmaster
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
Diffstat (limited to 'init.el')
-rw-r--r--init.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/init.el b/init.el
index 4a9d8bf..68cbc96 100644
--- a/init.el
+++ b/init.el
@@ -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
;;;------------------------------