summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)))