From d1a53056bdea7da1b54948da3515563c7b0c82ce Mon Sep 17 00:00:00 2001 From: Alice Carroll Date: Tue, 10 Dec 2024 22:29:57 +0300 Subject: [PATCH] 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 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> (cherry picked from commit bc25f3d69d3bb54548b772d7c2771e65cc37dc10) --- modules/emacs/hm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/emacs/hm.nix b/modules/emacs/hm.nix index 97d38f2c4..32e187b43 100644 --- a/modules/emacs/hm.nix +++ b/modules/emacs/hm.nix @@ -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}))