summaryrefslogtreecommitdiff
path: root/early-init.el
blob: af0ae4eb6d22299146eca79ccbab46e828203b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)