summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 9012a0d..58727d9 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -129,7 +129,9 @@
(:family "Menlo" :height 120))
"Fonts to try as default.")
-(add-hook 'after-init-hook #'my/set-frame-font)
+(let ((hook (cond ((daemonp) 'server-after-make-frame-hook)
+ (window-system 'after-init-hook))))
+ (when hook (add-hook hook #'my/set-frame-font)))
;; “Window” Management