summaryrefslogtreecommitdiff
path: root/cider-doc.el
diff options
context:
space:
mode:
authorUstun Ozgur <ustun@ustunozgur.com>2017-05-09 11:21:35 +0300
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2017-05-09 12:08:49 +0300
commitd84b8a8ba77cd685b3a4bc474b1928461cc86bf3 (patch)
tree024a9d347681d9a1356b0ec609a2ffa0324a1c88 /cider-doc.el
parentea233297492c6b4bacf1780e2243cd02c6d80ee7 (diff)
Update various faces when a theme is disabled
Previously, we were only updating faces when we enable themes.
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