From 1ad7877974a50018234df9ef366b1193556fb31e Mon Sep 17 00:00:00 2001 From: KJ Date: Sat, 30 Sep 2023 17:49:28 -0400 Subject: [PATCH] Disable auto-maximize emacs at startup. --- early-init.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/early-init.el b/early-init.el index ccb66d4..36e21d0 100644 --- a/early-init.el +++ b/early-init.el @@ -24,6 +24,7 @@ (put 'gc-cons-percentage 'original-value-before-init gc-cons-percentage) (put 'gc-cons-percentage 'value-during-init 0.6) (defun restore-gc-cons-percentage-after-init () + "Restaura el garbaje collection luego de iniciar." (let ((expected-value (get 'gc-cons-percentage 'value-during-init)) (value-to-restore (get 'gc-cons-percentage 'original-value-before-init))) (when (and value-to-restore (equal gc-cons-percentage expected-value)) @@ -43,10 +44,8 @@ (push '(tool-bar-lines . 0) default-frame-alist) ; Quitar toolbar. ;; Iniciar emacs maximizado -;; (add-to-list 'initial-frame-alist '(fullscreen . maximized)) ; frame inicial -;; (add-to-list 'default-frame-alist '(fullscreen . maximized)) ; Cada frame -(add-hook 'window-setup-hook 'toggle-frame-maximized t) ; Hacerlo mediante window-setup-hook (se maximiza al terminar de cargar la ventana) -(push '(ns-transparent-titlebar . t) default-frame-alist) +;; (add-hook 'window-setup-hook 'toggle-frame-maximized t) ; Hacerlo mediante window-setup-hook (se maximiza al terminar de cargar la ventana) +;; (push '(ns-transparent-titlebar . t) default-frame-alist) ;; Resizing the Emacs frame can be a terribly expensive part of changing the ;; font. By inhibiting this, we easily halve startup times with fonts that are