summaryrefslogtreecommitdiff
path: root/early-init.el
blob: 02212b220355143cc75448259e91011768ef8625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;;; early-init.el --- minimal early startup config -*- lexical-binding: t; -*-

;; Keep GC permissive during startup; init.el restores a steady-state threshold.
(setq gc-cons-threshold most-positive-fixnum
      gc-cons-percentage 0.6)

;; Let init.el control package initialisation.
(setq package-enable-at-startup nil)

;; Trim obvious GUI chrome early to reduce flicker.
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)

;; Configure the first GUI frame before init.el runs.
(add-to-list 'default-frame-alist '(font . "JetBrains Mono-16"))
(add-to-list 'initial-frame-alist '(font . "JetBrains Mono-16"))
(add-to-list 'default-frame-alist '(width . 140))
(add-to-list 'default-frame-alist '(height . 42))