Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
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
add comment

1 Answer

up vote 2 down vote accepted

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...

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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