ui/zen: fix mixed-pitch-mode not activating

This commit is contained in:
Henrik Lissner 2020-01-09 02:47:06 -05:00
parent 87f72c096c
commit 67d9ef64f3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -17,7 +17,7 @@
(remove-hook 'writeroom-global-effects 'writeroom-set-fullscreen)
(add-hook! 'writeroom-mode-hook
(defun +zen-enable-mixed-pitch-mode-h ()
(defun +zen-enable-text-scaling-mode-h ()
"Enable `mixed-pitch-mode' when in `+zen-mixed-pitch-modes'."
(when (/= +zen-text-scale 0)
(text-scale-set (if writeroom-mode +zen-text-scale 0)))))