From f9f89304ba6c0f789ecab08fbc23991a302052e3 Mon Sep 17 00:00:00 2001
From: Mountain Man <mmosmacs-dev@anu.tgwil.net>
Date: Sun, 9 Apr 2023 17:51:57 -0400
Subject: Disable superfluous UI elements in Early Init

MMOSMacs is a keyboard-centric environment, there is no use for
mouse-centric UI elements such as tool-bars and menu-bars. They are now
disabled. This is done in Early Init to prevent them from being
initialized in the first place, to prevent visual stutter.
---
 early-init.el | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

diff --git a/early-init.el b/early-init.el
index 21ebdea..24b53b0 100644
--- a/early-init.el
+++ b/early-init.el
@@ -1,6 +1,37 @@
 ;;; -*- lexical-binding: t; -*-
-;;; init.el
+;;; early-init.el
 ;;
 ;; Early Init file for MMOSMacs. This is loaded before the GUI and
 ;; package system are initialized. This should contain only what
 ;; absolutely must be in Early Init.
+
+
+;; ---------------------------------------------------------------------
+;;; UI Adjustments
+;; ---------------
+;; The primary goal of this Section is to prevent Emacs from flashing or
+;; stuttering visually on startup.
+;;
+;; If these customizations were placed in `init.el', as is the norm,
+;; Emacs would initialize the UI elements, then make whatever
+;; customizations we wrote.
+;;
+;; By placing the customizations here, they are applied before the UI is
+;; initialized, preventing any visual glitches altogether.
+;; ---------------------------------------------------------------------
+
+;; ---------------------------------
+;; Disable superfluous UI elements
+;; -------------------------------
+;; These UI elements are useless in
+;; a keyboard-centric environment.
+;; ---------------------------------
+
+;; Disable the menu bar
+(push '(menu-bar-lines . 0) default-frame-alist)
+
+;; Disable the tool-bar
+(push '(tool-bar-lines . 0) default-frame-alist)
+
+;; Disable scroll bars
+(push '(vertical-scroll-bars . 0) default-frame-alist)
-- 
cgit v1.2.3