summaryrefslogtreecommitdiff
path: root/early-init.el
diff options
context:
space:
mode:
authorbh <qn+git@excalibur.computer>2025-12-10 17:24:50 +0800
committerbh <qn+git@excalibur.computer>2025-12-10 17:24:50 +0800
commit03adcf13345cc04d3bee259239794f4c4e55610c (patch)
treebd3dd74bb8000cccb7029f806ae254cb7169420f /early-init.el
Initial Commit!
Diffstat (limited to 'early-init.el')
-rw-r--r--early-init.el30
1 files changed, 30 insertions, 0 deletions
diff --git a/early-init.el b/early-init.el
new file mode 100644
index 0000000..af0ae4e
--- /dev/null
+++ b/early-init.el
@@ -0,0 +1,30 @@
+;; early-init.el --- Early initialization for fast startup -*- lexical-binding: t -*-
+
+;; =====================================
+;; 🚀 Performance Optimization
+;; =====================================
+
+;; Maximize GC threshold during startup (restored in init.el)
+(setq gc-cons-threshold most-positive-fixnum)
+
+;; =====================================
+;; 🎨 UI Configuration (Pre-GUI Init)
+;; =====================================
+
+;; Configure frame appearance BEFORE GUI initializes
+;; This prevents the white flash on startup
+(setq default-frame-alist
+ '((font . "JetBrainsMono Nerd Font-10.5:weight=semi-bold:antialias=true:hinting=true:hintstyle=slight")
+ (background-color . "#003636") ;; Dark cyan background
+ (foreground-color . "#8affff") ;; Bright cyan text
+ (alpha-background . 75) ;; 75% opacity (GUI only)
+ (internal-border-width . 0)
+ (vertical-scroll-bars . nil)
+ (menu-bar-lines . 0)
+ (tool-bar-lines . 0)))
+
+;; Use system font rendering settings for better anti-aliasing
+(setq-default font-use-system-font t)
+
+;; Prevent package.el from loading (we use straight.el instead)
+(setq package-enable-at-startup nil)