aboutsummaryrefslogtreecommitdiff
path: root/early-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'early-init.el')
-rw-r--r--early-init.el60
1 files changed, 60 insertions, 0 deletions
diff --git a/early-init.el b/early-init.el
new file mode 100644
index 0000000..37222a4
--- /dev/null
+++ b/early-init.el
@@ -0,0 +1,60 @@
1;;; -*- lexical-binding: t; -*-
2;;; early-init.el
3;;
4;; Early Init file for MMOSMacs. This is loaded before the GUI and
5;; package system are initialized. This should contain only what
6;; absolutely must be in Early Init.
7
8
9;; ---------------------------------------------------------------------
10;;; UI Adjustments
11;; ---------------
12;; The primary goal of this Section is to prevent Emacs from flashing or
13;; stuttering visually on startup.
14;;
15;; If these customizations were placed in `init.el', as is the norm,
16;; Emacs would initialize the UI elements, then make whatever
17;; customizations we wrote.
18;;
19;; By placing the customizations here, they are applied before the UI is
20;; initialized, preventing any visual glitches altogether.
21;; ---------------------------------------------------------------------
22
23;; ---------------------------------
24;; Disable superfluous UI elements
25;; -------------------------------
26;; These UI elements are useless in
27;; a keyboard-centric environment.
28;; ---------------------------------
29
30;; Disable the menu bar
31(push '(menu-bar-lines . 0) default-frame-alist)
32
33;; Disable the tool-bar
34(push '(tool-bar-lines . 0) default-frame-alist)
35
36;; Disable scroll bars
37(push '(vertical-scroll-bars . 0) default-frame-alist)
38
39
40;; ---------------------------------
41;; Maximize frame on startup
42;; -------------------------
43;; Resizing is one of the primary
44;; sources of visual glitching.
45;; ---------------------------------
46
47(push '(fullscreen . maximized) initial-frame-alist)
48(push '(ns-transparent-titlebar . t) default-frame-alist)
49(setq frame-inhibit-implied-resize t
50 frame-resize-pixelwise t)
51
52
53;; ---------------------------------
54;; Start with a black background
55;; -----------------------------
56;; This is necessary to prevent eye
57;; damage
58;; ---------------------------------
59
60(set-face-attribute 'default nil :background "#000000" :foreground "#FFFFFF")