blob: c8b5b5f62e05ba8f7e828fa821f90d159793fc78 (
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
31
32
33
34
35
36
37
38
39
40
|
;; 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)
;; =====================================
;; 🎨 Terafox Theme
;; =====================================
;; Add config directory to theme path
(add-to-list 'custom-theme-load-path (expand-file-name "themes" user-emacs-directory))
(load-theme 'terafox-emacs t)
;; =====================================
;; 🎨 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)
|