Skip to content

Commit

Permalink
emacs: fix spurious quotes around :size arg (danth#555)
Browse files Browse the repository at this point in the history
If the size is expressed as a string, Emacs calls bloody murder:

    invalid font property (:size . "14.000000")

Fixes: 35233f9 ("emacs: explicitly set font size (danth#553)")

Reviewed-by: Jez Cope <[email protected]>
Approved-by: NAHO <[email protected]>
  • Loading branch information
panchoh authored Sep 16, 2024
1 parent 35233f9 commit 149b313
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 t :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 149b313

Please sign in to comment.