From c5c05236060e9d7a2b2eb2962a82874a57cc7b61 Mon Sep 17 00:00:00 2001 From: Tobias Ostner Date: Sun, 3 May 2026 10:57:16 +0200 Subject: [PATCH] Tidy up early init and reset gc threshold after start --- flakes/emacs/config/early-init.el | 10 ++++------ flakes/emacs/config/init.el | 4 ++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/flakes/emacs/config/early-init.el b/flakes/emacs/config/early-init.el index d0a5a3a..f9b0494 100644 --- a/flakes/emacs/config/early-init.el +++ b/flakes/emacs/config/early-init.el @@ -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) diff --git a/flakes/emacs/config/init.el b/flakes/emacs/config/init.el index 99c38da..5b5cd9c 100644 --- a/flakes/emacs/config/init.el +++ b/flakes/emacs/config/init.el @@ -224,12 +224,15 @@ backup-directory-alist `((".*" . ,temporary-file-directory)) create-lockfiles nil delete-by-moving-to-trash t + display-time-default-load-average nil echo-keystrokes 0.1 enable-recursive-minibuffers t fast-but-imprecise-scrolling t help-window-select t highlight-nonselected-windows nil history-delete-duplicates t + initial-major-mode 'emacs-lisp-mode + initial-scratch-message nil isearch-allow-motion t isearch-lazy-count t kill-do-not-save-duplicates t @@ -265,6 +268,7 @@ global-auto-revert-non-file-buffers t locale-coding-system 'utf-8 ns-use-proxy-icon nil + read-process-output-max (* 4 1024 1024) redisplay-skip-fontification-on-input t truncate-string-ellipsis "..." bidi-inhibit-bpa t)