Minor refactors & comment revision

This commit is contained in:
Henrik Lissner 2020-01-11 17:27:04 -05:00
parent 29250133e8
commit 0c9f1b1a9c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
6 changed files with 11 additions and 9 deletions

View file

@ -22,11 +22,11 @@ Meant for `doom-change-font-size-hook'."
(let ((default-height +modeline--old-bar-height)
(scale (or (frame-parameter nil 'font-scale) 0)))
(if (> scale 0)
(let* ((font-size (string-to-number
(aref (doom--font-name (frame-parameter nil 'font)
(selected-frame))
xlfd-regexp-pixelsize-subnum)))
(scale (frame-parameter nil 'font-scale)))
(let ((font-size (string-to-number
(aref (doom--font-name (frame-parameter nil 'font)
(selected-frame))
xlfd-regexp-pixelsize-subnum)))
(scale (frame-parameter nil 'font-scale)))
(setq doom-modeline-height (+ default-height (* scale doom-font-increment))))
(setq doom-modeline-height default-height))))