From 2a170f3f03f1164331a958adfa850fbf23bb1ec6 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Sat, 14 Jun 2025 14:25:05 -0400 Subject: [PATCH] Move frame-resize-pixelwise to early-init.el --- early-init.el | 4 ++++ init.el | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/early-init.el b/early-init.el index 09e759a..62d3115 100644 --- a/early-init.el +++ b/early-init.el @@ -218,6 +218,10 @@ pre-early-init.el, and post-early-init.el.") (setq inhibit-compacting-font-caches t) (when (and (not (daemonp)) (not noninteractive)) + ;; Resizing the Emacs frame can be costly when changing the font. Disable this + ;; to improve startup times with fonts larger than the system default. + (setq frame-resize-pixelwise t) + ;; Without this, Emacs will try to resize itself to a specific column size (setq frame-inhibit-implied-resize t) diff --git a/init.el b/init.el index 94f397e..f9153e8 100644 --- a/init.el +++ b/init.el @@ -233,10 +233,6 @@ ;;; Frames and windows -;; Resizing the Emacs frame can be costly when changing the font. Disable this -;; to improve startup times with fonts larger than the system default. -(setq frame-resize-pixelwise t) - ;; However, do not resize windows pixelwise, as this can cause crashes in some ;; cases when resizing too many windows at once or rapidly. (setq window-resize-pixelwise nil)