Add text-scale fix for mixed-pitch-mode

At least until https://gitlab.com/jabranham/mixed-pitch/issues/6 is
dealt with.
This commit is contained in:
Henrik Lissner 2020-01-09 22:55:40 -05:00
parent ad1d168349
commit c97f63beb8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -50,4 +50,14 @@
'org-indent
'font-lock-comment-face
'line-number
'line-number-current-line))
'line-number-current-line)
;; See https://gitlab.com/jabranham/mixed-pitch/issues/6#note_79691741
(defadvice! +zen--fix-scaled-fixed-pitch-faces-a (orig-fn &rest args)
:around #'mixed-pitch-mode
(cl-letf* ((old-face-remap-add-relative (symbol-function #'face-remap-add-relative))
((symbol-function #'face-remap-add-relative)
(lambda (face &rest specs)
(funcall old-face-remap-add-relative
face (doom-plist-delete specs :height)))))
(apply orig-fn args))))