When I open a new frame in emacs, none of the settings in my .emacs file are evaluated unless I open the file and evaluate the buffer manually. Is there a secret that I am missing? Some bit of magic in my .emacs file that should handle this?

  • the .emacs is only evaluated once when Emacs start. So all configuration there should apply to all frame. That said there are things that only apply to the initial frame. If you could be more specific on what is not set in the new frame. – Rémi Nov 21 '11 at 16:58
  • i'm primarily concerned with the color schemes – Larry G. Wapnitsky Nov 21 '11 at 19:01

To define colors in all emacs frame, one can change the default face:

(set-face-attribute 'default nil :background "black")
(set-face-attribute 'default nil :foreground "gray90")

Or use default-frame-alist:

(setq default-frame-alist
  '((foreground-color . "gray90")
    (background-color . "black")))

I've both in my .emacs, and there could be a reason...

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.