pezra / rspec-mode

An RSpec minor mode for Emacs
257 stars 112 forks source link

How to customize rspec erorr stack colours matching with my preferred theme. #160

Closed amritendu-mondal closed 7 years ago

amritendu-mondal commented 7 years ago

Hi, It seems the rspec mode color is using some different colour scheme. How to change it to something which suits my current theme. All my error stack are not visible in emacs. I have attached one image also. Please take a look and guide me to do my work. I cant live without this rspec mode. I use it in every minute. Thanks.

screen shot 2017-03-05 at 12 27 25 am
dgutov commented 7 years ago

To find out the face which is used at a given buffer position, move the cursor there and type C-u C-x =. That is the face you need to customize or ask the author of the current theme to include.

For example, the errors are highlighted with the face compilation-error.

amritendu-mondal commented 7 years ago

Hi, Thanks for replying. compilation-error is not reflecting in the error. For example in my below screenshot, compilation-error is magenta but the face is something else. I shown the output of C-u C-x = also.

screen shot 2017-03-05 at 2 13 13 am
dgutov commented 7 years ago

Ah yes, that also happens. See the foreground-color value above? That is there because of rspec-colorize-compilation-buffer we add to compilation-filter-hook, to translate the ANSI codes that the RSpec process outputs into Emacs faces.

You can try undoing this in rspec-compilation-mode-hook, if that is your goal. Personally, I'd just pick a theme that works well with the generic colors.

amritendu-mondal commented 7 years ago

Hi, I checked the code for rspec-compilation-mode-hook. If I comment out the rspec-colorize-compilation-buffer, then also its coming same. Find the attached screenshot please. Commenting this line should not override the face is it?

screen shot 2017-03-05 at 1 42 04 pm
dgutov commented 7 years ago

It should.

What does C-u C-x = show then?

amritendu-mondal commented 7 years ago

It shows like this -

screen shot 2017-03-05 at 2 11 48 pm
amritendu-mondal commented 7 years ago

After restarting emacs twice. I can see the face changed. But the hyper link seems to have broken. Previous setting was better now I feel. Anyway I am good now. Thanks. :)