summaryrefslogtreecommitdiff
path: root/cider-test.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-test.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-test.el')
-rw-r--r--cider-test.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/cider-test.el b/cider-test.el
index 6617ac2e..a23a9bf8 100644
--- a/cider-test.el
+++ b/cider-test.el
@@ -122,6 +122,11 @@ Add to this list to have CIDER recognize additional test defining macros."
(setq cider-test-items-background-color (cider-scale-background-color)))
+(defadvice disable-theme (after cider-test-adapt-to-theme activate)
+ "When theme is disabled, update `cider-test-items-background-color'."
+ (setq cider-test-items-background-color (cider-scale-background-color)))
+
+
;;; Report mode & key bindings
;; The primary mode of interacting with test results is the report buffer, which
;; allows navigation among tests, jumping to test definitions, expected/actual