summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2025-09-14 20:07:35 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2025-09-14 20:07:35 +0100
commit141c6cfb76b832532fb8ffc63cda617ae3cfa93d (patch)
tree6b68bb6843273be30c2933a6d987367709947624
parent58150ce402b936eeb8a0a1be105c0b6971c7d541 (diff)
emacs: Check ‘x-family-fonts’ before setting font
-rw-r--r--emacs/init.el3
1 files changed, 2 insertions, 1 deletions
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)))