From 73abf7e40652a21cc9ce7b3545a69da8a7605f93 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 24 Apr 2016 12:01:56 +0100 Subject: [PATCH] dot/emacs: Propagate initial frame's background colour to other frames. Now the `.xinitrc' Emacs has all of its frames with black backgrounds and other ancillary Emacsen have all of their frames with blue backgrounds. This seems right and useful. --- dot/emacs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot/emacs b/dot/emacs index 320e03c..7e66c2a 100644 --- a/dot/emacs +++ b/dot/emacs @@ -542,6 +542,9 @@ (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. -- 2.11.0