mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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))))
|
||||
|
Reference in New Issue
Block a user