diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2025-09-14 20:07:35 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2025-09-14 20:07:35 +0100 |
| commit | 141c6cfb76b832532fb8ffc63cda617ae3cfa93d (patch) | |
| tree | 6b68bb6843273be30c2933a6d987367709947624 /emacs | |
| parent | 58150ce402b936eeb8a0a1be105c0b6971c7d541 (diff) | |
emacs: Check ‘x-family-fonts’ before setting font
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/init.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el index 9d16f2e..25af408 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -129,7 +129,8 @@ wombat))) "Themes to try.") -(let ((hook (cond ((daemonp) 'server-after-make-frame-hook) +(let ((hook (cond ((and (daemonp) (fboundp 'x-family-fonts)) + 'server-after-make-frame-hook) (window-system 'after-init-hook)))) (when hook (add-hook hook #'my/set-frame-font))) |
