diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2024-08-24 13:33:13 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2024-08-24 13:33:13 +0100 |
| commit | 1428b37adc7de482a915f44cc016cbb095c39079 (patch) | |
| tree | f4361d3727baabfa913cc6cbfeffa5c0600576ff | |
| parent | 8264d04f982968148fd1e66c02efce88d452c415 (diff) | |
emacs: Set frame font in more contexts
| -rw-r--r-- | emacs/init.el | 4 |
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 |
