From 7fe6ddfecb38fec48450a3957b013c63b5aa498a Mon Sep 17 00:00:00 2001
From: Thomas Voss <mail@thomasvoss.com>
Date: Sun, 8 Sep 2024 22:41:06 +0200
Subject: emacs: Only call (x-set-fonts) in emacsclient

---
 .config/emacs/init.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index fcd50ed..dc40f78 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -627,9 +627,9 @@ font name, font weight, and font height in that order.")
                         :weight prop-weight
                         :height prop-height)))
 
-(when (daemonp)
-  (add-hook 'after-make-frame-functions (lambda (_) (x-set-fonts))))
-(x-set-fonts)
+(if (daemonp)
+    (add-hook 'after-make-frame-functions (lambda (_) (x-set-fonts)))
+  (x-set-fonts))
 
 
 ;;; C-Style
-- 
cgit v1.2.3