Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
433ec660
Commit
433ec660
authored
Jun 29, 2005
by
Juri Linkov
Browse files
(xterm-rxvt-set-background-mode):
Set default-frame-background-mode instead of frame-background-mode.
parent
61b91ad1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lisp/term/xterm.el
lisp/term/xterm.el
+2
-2
No files found.
lisp/term/xterm.el
View file @
433ec660
...
...
@@ -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!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment