From e4a9bf216226d910d430319a0a5f5c919c2b3332 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Thu, 12 Mar 2026 07:56:42 -0700 Subject: emacs: rm code to avoid flash of light in early-init It's no longer working, and it breaks themes. --- .emacs.d/early-init.el | 19 ------------------- 1 file changed, 19 deletions(-) (limited to '.emacs.d/early-init.el') diff --git a/.emacs.d/early-init.el b/.emacs.d/early-init.el index 5a34cb3..10ecda0 100644 --- a/.emacs.d/early-init.el +++ b/.emacs.d/early-init.el @@ -3,25 +3,6 @@ (tool-bar-mode -1) (scroll-bar-mode -1) -;; Avoid initial flash of light. -(defun prot-emacs-re-enable-frame-theme (_frame) - "Re-enable active theme, if any, upon FRAME creation. -Add this to `after-make-frame-functions' so that new frames do -not retain the generic background set by the function -`prot-emacs-avoid-initial-flash-of-light'." - (when-let* ((theme (car custom-enabled-themes))) - (enable-theme theme))) - -(defun prot-emacs-avoid-initial-flash-of-light () - "Avoid flash of light when starting Emacs, if needed. -New frames are instructed to call `prot-emacs-re-enable-frame-theme'." - (setq mode-line-format nil) - (set-face-attribute 'default nil :background "#000000" :foreground "#ffffff") - (set-face-attribute 'mode-line nil :background "#000000" :foreground "#ffffff" :box 'unspecified) - (add-hook 'after-make-frame-functions #'prot-emacs-re-enable-frame-theme)) - -(prot-emacs-avoid-initial-flash-of-light) - ;; Do not resize when font size changes (setq frame-resize-pixelwise t) -- cgit v1.2.3