chiark / gitweb /
dot/emacs: Propagate initial frame's background colour to other frames.
[profile] / dot / emacs
index 320e03cfc478b30a2b8d9d2b3d35fbadfef02fcb..7e66c2a21c39197adff61c0b7cdd62e2642cc122 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
             (background-color . "black")
             (foreground-color . "white"))
        (nil (menu-bar-lines . 0))))
+(let ((backg (frame-parameter nil 'background-color)))
+  (if (and backg window-system)
+      (push (cons 'background-color backg) default-frame-alist)))
 
 ;; Other frame fiddling.