srcery-colors / srcery-emacs

The dark color scheme for Emacs/Spacemacs. GUI and terminal support
https://srcery.sh
131 stars 6 forks source link

redefine colors in shell-mode #4

Closed parjanya closed 5 years ago

parjanya commented 5 years ago

Hi!

By evaluating this I made shell-mode to use the theme’s colors:

(setq ansi-color-names-vector
      (vector srcery-black         ; "black"
          srcery-red           ; "red3"
          srcery-green         ; "green3"
          srcery-bright-yellow ; "yellow3"
          srcery-blue          ; "blue2"
          srcery-magenta       ; "magenta3"
          srcery-cyan          ; "cyan3"
          srcery-gray-5        ; "gray90"
          ))

(setq ansi-color-map (ansi-color-make-color-map))

Perhaps it could be added to the theme?

roosta commented 5 years ago

Hello :) Theres already an ansi-color-names-vector defined under custom-theme-set-variables but they are set to the srcery-256 colors. Are you saying that setting them to your example evals to the correct colors in both term and graphical frames?

parjanya commented 5 years ago

I had only tested graphical frames. I don’t quite get how colors change in the terminal, and from my test most of the ones set by that command do appear correct on the term, except the black color weirdly.

srcery-emacs-1

🤔

Anyhow, the colors were the vanilla ones before I added the snippet above.

roosta commented 5 years ago

I'm not sure I get it either honestly. I pushed a commit where the colors are set to the GUI color variants and it looks OK here in both terminal and graphical frames. Not sure why your black color it is like it is, its seems OK here. 561d83d5bbd4c1c939ad9f52863e75b969af320d

roosta commented 5 years ago

Closing this then