jonathanchu / emacs-powerline

Powerline for Emacs
497 stars 37 forks source link

Background color change do not stick for new frames #30

Open brabalan opened 9 years ago

brabalan commented 9 years ago

If I use the configuration suggested in the Readme:

(custom-set-faces
 '(mode-line ((t (:foreground "#030303" :background "#bdbdbd" :box nil))))
 '(mode-line-inactive ((t (:foreground "#f9f9f9" :background "#666666" :box nil)))))

then the background color is not preserved for new frames. I suspect this is because it is set explicitly here: https://github.com/jonathanchu/emacs-powerline/blob/master/powerline.el#L25

To solve this, I added

(set-face-attribute 'mode-line nil
                    :background "#bdbdbd")

to my configuration file after I load powerline.

jonathanchu commented 9 years ago

Ah, thanks. Perhaps you want to add that section in the README if you think it will be helpful for others who run multiple frames? I'm all for it. :+1: