From d84b8a8ba77cd685b3a4bc474b1928461cc86bf3 Mon Sep 17 00:00:00 2001 From: Ustun Ozgur Date: Tue, 9 May 2017 11:21:35 +0300 Subject: Update various faces when a theme is disabled Previously, we were only updating faces when we enable themes. --- cider-doc.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cider-doc.el') diff --git a/cider-doc.el b/cider-doc.el index c367edfa..bf22bf97 100644 --- a/cider-doc.el +++ b/cider-doc.el @@ -135,6 +135,11 @@ "When theme is changed, update `cider-docview-code-background-color'." (setq cider-docview-code-background-color (cider-scale-background-color))) + +(defadvice disable-theme (after cider-docview-adapt-to-theme activate) + "When theme is disabled, update `cider-docview-code-background-color'." + (setq cider-docview-code-background-color (cider-scale-background-color))) + ;; Mode & key bindings -- cgit v1.2.3