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:
parent
ad1d168349
commit
c97f63beb8
1 changed files with 11 additions and 1 deletions
|
@ -50,4 +50,14 @@
|
||||||
'org-indent
|
'org-indent
|
||||||
'font-lock-comment-face
|
'font-lock-comment-face
|
||||||
'line-number
|
'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))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue