Skip to content

Commit

Permalink
emacs: set font for all frames, not just for new ones (#656)
Browse files Browse the repository at this point in the history
The existing solution does not work on macOS for some reason.

Reviewed-by: Daniel Thwaites <[email protected]>
Reviewed-by: NAHO <[email protected]>
  • Loading branch information
thecaralice authored Dec 10, 2024
1 parent dd6605b commit bc25f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/emacs/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}))
Expand Down

0 comments on commit bc25f3d

Please sign in to comment.