I’m having this weird problem with emacs and would really appreciate some help. I’m running emacs in terminal on an ubuntu server that is setup on VirtualBox on my windows pc. I’ve tried both Cygwin and Git-Bash (both have mintty) and I get the same problem on both terminals.
The problem I’m getting is when I activate one of my custom themes for emacs the text gets garbled and unreadable. It’s mostly commented text that seem to meld together with other text. However, when I switch over to one of the default themes that ship with emacs the problem goes away. So this seems to be a problem with the custom themes (gotham and the whole tomorrow-night pack), because I’ve also noticed that the custom themes are affected by the mintty theme I’m using, while the standard emacs themes are unaffected by these. So when I enable, for example, gotham theme, and I open the mintty options and switch color themes there, the colors of gotham are affected as well. If I try the same with for example wombat theme (which ships with emacs), changing mintty themes does not have any affect at all on the emacs colors.
I believe the problems are connected to the emacs themes. The problem should not come from using mintty themes, as I’ve tried starting a terminal with default options (with only xterm-256color) enabled, and get the same problems from the custom emacs themes. It could be a problem with xterm-256color, but I am unable to check this since emacs doesn’t load any themes at all when only standard 8bit colors are enabled. But once again, if mintty was at fault then all emacs themes should be affected, instead of just the custom ones I’ve downloaded.
So what I’m wondering is if anyone knows if there are any settings somewhere in emacs config or in the theme files themselves that allow emacs to ignore terminal colors? Any advice would be greatly appreciated. I’m currently in the process of analyzing standard emacs themes against custom emacs themes to see if I find anything, but I’m not sufficiently versed at lisp to really understand what I’m looking for.
UPDATE - After experimenting some more I realized that the problematic themes seem to either be missing or are failing to load a few colors. I saw this while scrolling through the different themes with M-x customize-themes
. A few of the themes will retain some background and text color from the previous working theme, and mix them together which is what produces the garbled looking text. The unreadable text is printed in two layers on top of eachother with different colors and fonts.