In My .emacs
file, I have the following:
(set-foreground-color "#E0DFDB")
(set-background-color "#102372")
When I start up emacs, the color scheme for the default emacs window is correct but all new windows start with the default color scheme of white back grounds and black foreground. Can Anyone point Me in the direction of how to get emacs to set My preferred color scheme in all new windows? [Note: If I do M-x load-file ~/.emacs
after opening a new window, the colors are set the way I want but doing so manually every time I want to open a new window is distracting/annoying.]
The foreground controls what color your brush or pencil will be, while the background color erases any added color and replaces it with the background color, which is white by default.
Add the following to your .emacs
:
(add-to-list 'default-frame-alist '(foreground-color . "#E0DFDB")) (add-to-list 'default-frame-alist '(background-color . "#102372"))
You might want to look at http://www.emacswiki.org/emacs/FrameParameters and the links therein.
Welcome to emacs. Use Color themes to better suit your environment. https://www.emacswiki.org/emacs/ColorThemes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With