Emacs basics: Changing the background color
| emacs, wickedcoolemacsOne of the first things you’ll probably want to change about Emacs is the default face. This controls the foreground color, the background color, the font, and other attributes. For example, many graphical environments give Emacs a background of white. If you prefer a black background (which can be less tiring during long periods of use), you can change the background to black my customizing the default face.
To change the background color and other attributes, use the command M-x customize-face
, and specify default
as the face to customize. Change the attributes and the sample text will reflect your settings. When you are satisfied, select Save for future sessions. Your changes will be saved to ~/.emacs and reloaded the next time you start the editor.
This is a draft for Wicked Cool Emacs, a book that will be published by No Starch Press. (if we manage to get it all together! =)
10 comments
Glen
2010-01-03T20:04:09ZFor making changes i need to press enter on the [value] node. Then to actually see the changes i need to press enter on the [SET for this Session] node. For font family I just saw a box that said default...there was no option to change it. I guess this means I don't have any console fonts installed?
@bob thx for the recomendation!
Andabata
2011-03-06T20:27:49ZOh... emacs for the masses.
Thanks for your simple and effective explanation. :)
prajakta
2013-07-26T10:23:18ZThanks
-
anonyoyoyomopsus
2014-07-30T00:49:04ZWell, EMACS for life
aang
2015-10-24T20:58:36ZThank you! This is I've been looking for
aubreykohn
2016-08-11T22:32:35Zi found this completely unhelpful. I can't read any text. How then can I select from menus?
(set-background-color "black")
(set-foreground-color "wheat")
works for me.
sachac
2016-08-17T04:26:35ZGlad you found something that does!
Emmanuel Goldstein
2017-05-13T09:21:12ZIs it possible to modify an existing theme and save its new parameters instead of leading the theme and then adding code to .emacs to override certain features of the theme?
sachac
2017-05-14T06:03:55ZYou may like https://www.gnu.org/softwar... . Hope that helps! =)
Navid Rayan
2017-06-02T12:26:13Zmy eyes are at trouble with white screen