2

I installed the Emacs Prelude as suggested in https://github.com/bbatsov/prelude . I find the background-color grey of the Zenburn theme to be disturbing. I wish to change the background-color to black. I tried (set-background-color "black") ,but it is not working. The background-color still remains grey. Can someone help on how to fix this ?

Cœur
  • 37,241
  • 25
  • 195
  • 267
user1955184
  • 599
  • 1
  • 5
  • 18

2 Answers2

2

I'm assuming you didn't eval (set-background-color "black") (or didn't restart Emacs), since it worked just fine when I tested it with Prelude.

Placing the code in personal.el (as mentioned in the README) will work as well.

Btw, if you don't like Zenburn you might try a different theme, rather than playing its colours. You can see a list of available themes with M-x load-theme. There are details about this in the README as well.

Bozhidar Batsov
  • 55,802
  • 13
  • 100
  • 117
1

The cleanest way to do this is to edit .emacs.d/init.el and add the following:

(disable-theme 'zenburn)

This will give you a "fresh start" with default color settings. You are then free to change the colors as you wish.

If you like a black background, you might want to install the popular Cyberpunk theme.

M-x package-install RET
cyberpunk themeRET

incandescentman
  • 6,168
  • 3
  • 46
  • 86