From 1428b37adc7de482a915f44cc016cbb095c39079 Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sat, 24 Aug 2024 13:33:13 +0100 Subject: emacs: Set frame font in more contexts --- emacs/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emacs') 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 -- cgit v1.2.3-70-g09d2