summaryrefslogtreecommitdiff
path: root/emacs/init.el
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2024-08-24 13:33:13 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2024-08-24 13:33:13 +0100
commit1428b37adc7de482a915f44cc016cbb095c39079 (patch)
treef4361d3727baabfa913cc6cbfeffa5c0600576ff /emacs/init.el
parent8264d04f982968148fd1e66c02efce88d452c415 (diff)
emacs: Set frame font in more contexts
Diffstat (limited to 'emacs/init.el')
-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