fix: menubar appearing early during frame load

This commit is contained in:
Muhammad Nauman Raza 2022-11-16 21:38:19 +00:00
parent f95e050832
commit 16ebdead10
No known key found for this signature in database
GPG key ID: A9A36C429C9CAE31
2 changed files with 14 additions and 1 deletions

14
early-init.el Normal file
View file

@ -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

View file

@ -8,7 +8,6 @@
;;; Code: ;;; Code:
;; Disable Emacs' GTK decorations. Done in this file otherwise done too late. ;; Disable Emacs' GTK decorations. Done in this file otherwise done too late.
(menu-bar-mode -1)
(tool-bar-mode -1) (tool-bar-mode -1)
(scroll-bar-mode -1) (scroll-bar-mode -1)