summaryrefslogtreecommitdiff
path: root/cider-doc.el
diff options
context:
space:
mode:
Diffstat (limited to 'cider-doc.el')
-rw-r--r--cider-doc.el5
1 files changed, 5 insertions, 0 deletions
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