From b3b09659ba56fc41d2734e8a2fac920ffc848cbe Mon Sep 17 00:00:00 2001 From: jn Date: Mon, 15 Jul 2024 16:50:38 +0000 Subject: Ensure UI is readable if init.el fails early The background is set to black in early-init.el, with the assumption that a dark theme will be loaded. If init.el fails for any reason before the theme is loaded, the user ends up with black-on-black text. One expected case where this can happen is if the Emacs version is <29. The error message from the guardrail in init.el would be unreadable. --- early-init.el | 1 + 1 file changed, 1 insertion(+) diff --git a/early-init.el b/early-init.el index 08bf438..8bd3ddb 100644 --- a/early-init.el +++ b/early-init.el @@ -36,5 +36,6 @@ ;; Setting the face in here prevents flashes of ;; color as the theme gets activated (background-color . "#000000") + (foreground-color . "#ffffff") (ns-appearance . dark) (ns-transparent-titlebar . t))) -- cgit v1.2.3