I have recently started using Spacemacs instead of VIM, because of great VHDL mode.

In vim (neovim) I used to use VIM as terminal emulator. In Emacs I have encountered a bit of strange colour behaviour. To be exact I don't mean different palette for "System colours", that is not a problem. Problem is missing colors in "Color cube" and completely discolored Powerline.

bad colours

While I would expect this (KDE Konsole or neovim terminal):

correct colours

Everything is set to xterm-256, so I don't know what is the problem. This occurs in both -nw (terminal) mode and GUI mode.

It seems that 256 color are somewhat degraded by emacs, see comparison of colortest-256 command in Emacs and Konsole and also notice how Powerline is not coloured anymore.

Also note that colours in Powerline are wrong for both background and letters...

How can I fix this strange colour behaviour and get the shell Powerline (github.com/powerline/powerline) working under Shell or Term mode in Emacs?

  • Could you clarify the post a little to make your question explicit, please? – Dan Jan 31 '17 at 14:34
  • @Dan I have put a specific question in the end. Is it now better? – Bruno Kremel Jan 31 '17 at 15:02
  • Thanks, yes. It would also help if you could highlight what is different about the two screenshots. When I looked closely, I saw that the system colors differed, but the thing that jumps out is that the color cubes look almost identical. – Dan Jan 31 '17 at 15:38
  • @Dan I have put the clarification. It is not System colours.. that is ok for me. Problem is that some colours are missing in Colour cube and also Powerline is completely without colors... – Bruno Kremel Jan 31 '17 at 16:09
  • I think the Powerline colors are actually there, but maybe the font you're using is missing the glyphs that Powerline needs to make a solid box of color? You do have the funny branching arrow symbol, so maybe I'm wrong, but perhaps worth checking which font Emacs is using. – Tyler Jan 31 '17 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.