Tidy up early init and reset gc threshold after start

This commit is contained in:
Tobias Ostner 2026-05-03 10:57:16 +02:00
parent 0e725f9b4f
commit c5c0523606
2 changed files with 8 additions and 6 deletions

View file

@ -1,7 +1,9 @@
;; early-init.el --- -*- no-byte-compile: t -*-
(setq gc-cons-threshold 100000000)
(setq read-process-output-max (* 4 1024 1024))
(add-hook 'emacs-startup-hook
(lambda ()
(setq gc-cons-threshold 50000000)))
(setq byte-compile-warnings '(not obsolete))
(setq warning-suppress-log-types '((comp) (bytecomp)))
@ -11,11 +13,9 @@
(customize-set-variable 'load-prefer-newer t)
(setq frame-inhibit-implied-resize t
frame-resize-pixelwise t
display-time-default-load-average nil)
frame-resize-pixelwise t)
(setq inhibit-startup-message t)
(setq initial-scratch-message nil)
(push '(tool-bar-lines . 0) default-frame-alist)
(push '(menu-bar-lines . 0) default-frame-alist)
@ -26,5 +26,3 @@
(menu-bar-mode -1)
(add-to-list 'default-frame-alist '(undecorated . t))
(customize-set-variable 'initial-major-mode 'emacs-lisp-mode)