Move GUI disabling to early-init.el

This way we can void drawing elements that will be disabled anyway.

Inspired by https://emacsredux.com/blog/2025/03/28/speed-up-emacs-startup-by-tweaking-the-gc-settings/.
This commit is contained in:
Daniel Borchmann 2025-03-28 18:40:31 +01:00
parent b8147a6d45
commit 69e917ec86
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625
2 changed files with 9 additions and 8 deletions

View File

@ -16,3 +16,12 @@
(setq frame-resize-pixelwise t
frame-inhibit-implied-resize t)
(dolist (mode '(tool-bar-mode
scroll-bar-mode
menu-bar-mode
blink-cursor-mode
tooltip-mode))
(when (fboundp mode)
(funcall mode 0)))

View File

@ -2971,14 +2971,6 @@ eventuelly be set to nil, however)."
(column-number-mode +1)
(delete-selection-mode -1)
(dolist (mode '(tool-bar-mode
scroll-bar-mode
menu-bar-mode
blink-cursor-mode
tooltip-mode))
(when (fboundp mode)
(funcall mode 0)))
(electric-indent-mode -1)
(appt-activate +1)