Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update various faces when a theme is disabled #1988

Merged
merged 1 commit into from
May 9, 2017

Conversation

ustun
Copy link
Contributor

@ustun ustun commented May 9, 2017

Fixes #1987

Previously, we were only updating faces when we enable themes.
@ustun ustun force-pushed the fix_disable_theme_color_fix branch from 88f0558 to 79e9c1c Compare May 9, 2017 08:43
@bbatsov bbatsov merged commit d84b8a8 into clojure-emacs:master May 9, 2017
@bbatsov
Copy link
Member

bbatsov commented May 9, 2017

👍

@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use advice-add from nadvice.el? It's the recommended way for newer versions of Emacs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thought crossed my mind as well, but we'd have to update the existing code for consistency as well. We can always do this down the road.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants