From 03adcf13345cc04d3bee259239794f4c4e55610c Mon Sep 17 00:00:00 2001 From: bh Date: Wed, 10 Dec 2025 17:24:50 +0800 Subject: Initial Commit! --- early-init.el | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 early-init.el (limited to 'early-init.el') 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) -- cgit v1.2.3