From c033bfaca2ec8750b3b300bc96fc1ead5fe05344 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 12 Feb 2019 00:26:43 -0500 Subject: [PATCH] Fix mixed-pitch affecting all buffers Both solaire-mode and mixed-pitch-mode use face-remap to do their thang. We ensure the order by ensuring activation order. --- modules/ui/doom/config.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/ui/doom/config.el b/modules/ui/doom/config.el index e5f4f8c51..59edd4386 100644 --- a/modules/ui/doom/config.el +++ b/modules/ui/doom/config.el @@ -73,4 +73,13 @@ (add-hook! '(minibuffer-setup-hook window-configuration-change-hook) #'+doom|disable-fringes-in-minibuffer) - (solaire-global-mode +1)) + (solaire-global-mode +1) + + ;; Fix incompatibility with the mixed-pitch package which causes all buffers + ;; to be affected (by `mixed-pitch-mode') + (defun +doom*fix-mixed-pitch-mode (&optional arg) + (when (and mixed-pitch-mode (not arg)) + (mixed-pitch-mode -1)) + (solaire-mode -1) + (turn-on-solaire-mode)) + (advice-add #'mixed-pitch-mode :before #'+doom*fix-mixed-pitch-mode))