mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-22 14:01:47 -07:00
(xterm-rxvt-set-background-mode):
Set default-frame-background-mode instead of frame-background-mode.
This commit is contained in:
parent
61b91ad13b
commit
433ec66025
1 changed files with 2 additions and 2 deletions
|
|
@ -366,7 +366,7 @@ versions of xterm."
|
|||
"Set background mode as appropriate for the default rxvt colors."
|
||||
(let ((fgbg (getenv "COLORFGBG"))
|
||||
bg rgb)
|
||||
(setq frame-background-mode 'light) ; default
|
||||
(setq default-frame-background-mode 'light)
|
||||
(when (and fgbg
|
||||
(string-match ".*;\\([0-9][0-9]?\\)\\'" fgbg))
|
||||
(setq bg (string-to-number (substring fgbg (match-beginning 1))))
|
||||
|
|
@ -379,7 +379,7 @@ versions of xterm."
|
|||
;; The following line assumes that white is the 15th
|
||||
;; color in xterm-standard-colors.
|
||||
(* (apply '+ (car (cddr (nth 15 xterm-standard-colors)))) 0.6))
|
||||
(setq frame-background-mode 'dark)))
|
||||
(setq default-frame-background-mode 'dark)))
|
||||
(frame-set-background-mode (selected-frame))))
|
||||
|
||||
;; Do it!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue