summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-08 22:41:06 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-08 22:41:06 +0200
commit7fe6ddfecb38fec48450a3957b013c63b5aa498a (patch)
treeb63047bedc0b50f405cfabddbf8b229feeeacda1
parent41aa95fc1b27510d7cbef8301e55cc53ddcf3658 (diff)
emacs: Only call (x-set-fonts) in emacsclient
-rw-r--r--.config/emacs/init.el6
1 files 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