From 141c6cfb76b832532fb8ffc63cda617ae3cfa93d Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sun, 14 Sep 2025 20:07:35 +0100 Subject: emacs: Check ‘x-family-fonts’ before setting font MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs/init.el b/emacs/init.el index 9d16f2e..25af408 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -129,7 +129,8 @@ wombat))) "Themes to try.") -(let ((hook (cond ((daemonp) 'server-after-make-frame-hook) +(let ((hook (cond ((and (daemonp) (fboundp 'x-family-fonts)) + 'server-after-make-frame-hook) (window-system 'after-init-hook)))) (when hook (add-hook hook #'my/set-frame-font))) -- cgit v1.2.3-70-g09d2