mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(lib): reset font size before setting big font mode
Calling (doom-adjust-font-size 1) repeatedly would keep increase the font size because an increment is passed. When loading themes, the doom-big-font-mode minor mode gets loaded again therefore it causes the font to get increased. Fix: #7845
This commit is contained in:
@ -177,4 +177,5 @@ Also resizees `doom-variable-pitch-font' and `doom-serif-font'."
|
||||
(font-get (doom-normalize-font doom-big-font) :size))
|
||||
t `((doom-font . ,doom-big-font)))
|
||||
;; Resize the current font
|
||||
(doom-adjust-font-size nil)
|
||||
(doom-adjust-font-size (if doom-big-font-mode doom-big-font-increment))))
|
||||
|
Reference in New Issue
Block a user