I'm using a dark theme to write Clojure, with rainbow parentheses etc.

I like this theme and its syntax colouring, and I don't want to change it or mess it up.

BUT ... I'm currently sitting outside in a place with lots of sunlight and I can't read the screen.

What I'd like to be able to do is quickly, and temporarily (just in this session) invert the main colours : switch to a white background and black text (the other syntax colours I'm happy to keep the same)

Is there a way to do this?

  • Does this answer your question? Emacs Blue color too dark – NickD Sep 1 '20 at 17:07
  • ... and look for the accepted answer, not the highest-voted one (although you should read that one too :-)) – NickD Sep 1 '20 at 17:11
  • Would it work for changing the background colour? – interstar Sep 1 '20 at 18:39
  • No, frame-background-mode tells emacs whether your background is dark or light, so that it can adjust all the other colors to make them visible against the background you have. – NickD Sep 1 '20 at 19:06
  • OK - now I see I misread the question: you want to switch the background and keep everything else the same. But try it in any case, and see if it makes things readable. – NickD Sep 1 '20 at 19:09

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.