While emacs is running, how can I find out which color theme is currently in use?
There isn't the concept of a current theme, and indeed, multiple themes can be applied in sequence to additively define the set of active faces. Support for theming was added into the latest Emacs versions (see
M-x customize-themes), and there's still the option to "Select more than one theme at a time".
In short, when you activate a theme, you're not switching to that theme, but rather applying the changes specified in the theme to the faces and variables it lists.
All customizations which aren't explicitly placed in a named theme are actually put into the hidden user theme, so there's always at least one active theme. The other currently enabled themes are listed in the variable
As the documentation notes, your custom settings take precedence over theme settings; its possible that some of what you see are non-theme customizations.
Share an example for using color-theme-print to get what theme I applied.
color-theme-print you will get outputs about the color theme info, then find a typical value that is unique for different color themes, I choose
background-color whose value is 537182 for my emacs.
Open the color theme library
color-theme-library.el then search the file with keyword as '537182', then you'd get the theme name there.
Although not a straight-forward way but it really works, hope that helps!
M-x color-theme-print is useful to tell you exactly which font faces are in effect. It won't tell you which named color themes have been applied, but you should be able to work that out from your init file. If not, I suppose you must be using a mode that applies its own color theme (I know Proof General does this, and most irritating it is).
To add to sanityinc's response, you either set it yourself, or it's in your init.el (dotemacs) file.
I guess you are asking because you tried a couple of them and forgot right? I know I have, I wonder if you can check your Messages buffer to see the last one applied.
@sanityinc thanks for the explanation too. I noticed when I started to add more and more themes in succession, some areas, like the mini buffer wouldn't change or would be set to the last theme's value. now i know why.