diff options
author | jn <j@ustink.org> | 2024-07-15 16:50:38 +0000 |
---|---|---|
committer | jn <j@ustink.org> | 2024-07-15 16:50:38 +0000 |
commit | b3b09659ba56fc41d2734e8a2fac920ffc848cbe (patch) | |
tree | 4c5ba0347776ef6a101ce6f4897f922cecaf977d | |
parent | fccc45cd6f854d8739b63ce9a993074fa0b2bb38 (diff) |
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.
-rw-r--r-- | early-init.el | 1 |
1 files changed, 1 insertions, 0 deletions
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))) |