emacs: set font for all frames, not just for new ones (#656)

The existing solution does not work on macOS for some reason.

Reviewed-by: Daniel Thwaites <danthwaites30@btinternet.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
Alice Carroll 2024-12-10 22:29:57 +03:00 committed by GitHub
parent dd6605be79
commit bc25f3d69d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ in
(setq base16-theme-256-color-source 'colors)
(load-theme 'base16-stylix t)
;; Set font
(set-face-attribute 'default t :font (font-spec :family "${monospace.name}" :size ${emacsSize}))
(set-face-attribute 'default nil :font (font-spec :family "${monospace.name}" :size ${emacsSize}))
;; -----------------------------
;; set opacity
(add-to-list 'default-frame-alist '(alpha-background . ${emacsOpacity}))