diff options
author | Ustun Ozgur <ustun@ustunozgur.com> | 2017-05-09 11:21:35 +0300 |
---|---|---|
committer | Bozhidar Batsov <bozhidar.batsov@gmail.com> | 2017-05-09 12:08:49 +0300 |
commit | d84b8a8ba77cd685b3a4bc474b1928461cc86bf3 (patch) | |
tree | 024a9d347681d9a1356b0ec609a2ffa0324a1c88 /cider-doc.el | |
parent | ea233297492c6b4bacf1780e2243cd02c6d80ee7 (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.el | 5 |
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 |