emacs: fix spurious quotes around :size arg (#555)

If the size is expressed as a string, Emacs calls bloody murder:

    invalid font property (:size . "14.000000")

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

Reviewed-by: Jez Cope <jezcope@users.noreply.github.com>
Approved-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
pancho horrillo 2024-09-16 16:37:22 +02:00 committed by GitHub
parent 35233f9296
commit 149b313ddf
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) (setq base16-theme-256-color-source 'colors)
(load-theme 'base16-stylix t) (load-theme 'base16-stylix t)
;; Set font ;; 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 ;; set opacity
(add-to-list 'default-frame-alist '(alpha-background . ${emacsOpacity})) (add-to-list 'default-frame-alist '(alpha-background . ${emacsOpacity}))