From cf8bfd0b03fe2f9673abc2d10c895d18f7f877ac Mon Sep 17 00:00:00 2001 From: Rutherther Date: Tue, 25 Jun 2024 21:08:22 +0200 Subject: [PATCH] fix: use font only for Linux --- early-init.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/early-init.el b/early-init.el index 258aef7..c349828 100644 --- a/early-init.el +++ b/early-init.el @@ -56,11 +56,14 @@ ;; Font rendering performance (setq-default font-lock-support-mode 'jit-lock-mode) (setq-default font-lock-multiline t) -(customize-set-variable - 'default-frame-alist - '((font . "Hack") - (background-color . "#282828") - (foreground-color . "#ebdbb2"))) + +(when + (memq window-system '(pgtk x)) + (customize-set-variable + 'default-frame-alist + '((font . "Hack") + (background-color . "#282828") + (foreground-color . "#ebdbb2")))) (when (fboundp 'startup-redirect-eln-cache) (startup-redirect-eln-cache -- 2.48.1