aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-20 00:40:19 +0000
committerRichard M. Stallman1998-05-20 00:40:19 +0000
commitba7eaddad2b98ac898016624ca47ba43b63c7f0a (patch)
tree7a7f5d3d30003d5298ce0b12772be6a2897bd8b7 /lisp
parente042d829e1695624221094acfecbb903c17a6480 (diff)
downloademacs-ba7eaddad2b98ac898016624ca47ba43b63c7f0a.tar.gz
emacs-ba7eaddad2b98ac898016624ca47ba43b63c7f0a.zip
(frame-background-mode): Define a :set function
to update the background mode of existing frames.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/faces.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 58b984ce876..2e3529fabf3 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1432,6 +1432,10 @@ Set this to the symbol dark if your background color is dark, light if
1432your background is light, or nil (default) if you want Emacs to 1432your background is light, or nil (default) if you want Emacs to
1433examine the brightness for you." 1433examine the brightness for you."
1434 :group 'faces 1434 :group 'faces
1435 :set #'(lambda (var value)
1436 (set var value)
1437 (mapcar 'frame-set-background-mode (frame-list)))
1438 :initialize 'custom-initialize-changed
1435 :type '(choice (choice-item dark) 1439 :type '(choice (choice-item dark)
1436 (choice-item light) 1440 (choice-item light)
1437 (choice-item :tag "default" nil))) 1441 (choice-item :tag "default" nil)))