From c97f63beb8bcb0698a5a131ab142eb2eef66b474 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 9 Jan 2020 22:55:40 -0500 Subject: [PATCH] Add text-scale fix for mixed-pitch-mode At least until https://gitlab.com/jabranham/mixed-pitch/issues/6 is dealt with. --- modules/ui/zen/config.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/ui/zen/config.el b/modules/ui/zen/config.el index f604690f6..487b11d6a 100644 --- a/modules/ui/zen/config.el +++ b/modules/ui/zen/config.el @@ -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))))