From 16ebdead10027b3b53206b49621cf30fab6cfe84 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Wed, 16 Nov 2022 21:38:19 +0000 Subject: [PATCH] fix: menubar appearing early during frame load --- early-init.el | 14 ++++++++++++++ init.el | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 early-init.el diff --git a/early-init.el b/early-init.el new file mode 100644 index 0000000..d7cc1b6 --- /dev/null +++ b/early-init.el @@ -0,0 +1,14 @@ +;;; early-init.el --- Early changes to Emacs -*- lexical-binding: t; -*- +;;; Commentary: +;; +;; This file contains elisp code to be run as early as Emacs will allow - this +;; means before the frame is actually loaded, which is why this file isn't +;; used as a replacement for the init.el file - time taken for the window to load +;; is more painful than time taken for the editor to load. +;; +;;; Code: + +;; Disable the menubar. Done in this file otherwise done too late. +(menu-bar-mode -1) + +;;; early-init.el ends here diff --git a/init.el b/init.el index c772382..7e6dd62 100644 --- a/init.el +++ b/init.el @@ -8,7 +8,6 @@ ;;; Code: ;; Disable Emacs' GTK decorations. Done in this file otherwise done too late. -(menu-bar-mode -1) (tool-bar-mode -1) (scroll-bar-mode -1)