diff options
| author | Richard M. Stallman | 1998-05-20 00:40:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-20 00:40:19 +0000 |
| commit | ba7eaddad2b98ac898016624ca47ba43b63c7f0a (patch) | |
| tree | 7a7f5d3d30003d5298ce0b12772be6a2897bd8b7 | |
| parent | e042d829e1695624221094acfecbb903c17a6480 (diff) | |
| download | emacs-ba7eaddad2b98ac898016624ca47ba43b63c7f0a.tar.gz emacs-ba7eaddad2b98ac898016624ca47ba43b63c7f0a.zip | |
(frame-background-mode): Define a :set function
to update the background mode of existing frames.
| -rw-r--r-- | lisp/faces.el | 4 |
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 | |||
| 1432 | your background is light, or nil (default) if you want Emacs to | 1432 | your background is light, or nil (default) if you want Emacs to |
| 1433 | examine the brightness for you." | 1433 | examine 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))) |