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
9b07ab0a
Commit
9b07ab0a
authored
Jun 29, 2005
by
Juri Linkov
Browse files
(rxvt-set-background-mode):
Set default-frame-background-mode instead of frame-background-mode.
parent
433ec660
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
lisp/ChangeLog
lisp/ChangeLog
+14
-0
lisp/term/rxvt.el
lisp/term/rxvt.el
+2
-2
No files found.
lisp/ChangeLog
View file @
9b07ab0a
2005-06-29 Juri Linkov <juri@jurta.org>
* faces.el (default-frame-background-mode): New internal variable.
(frame-set-background-mode): Use it.
* startup.el (normal-top-level): Set default-frame-background-mode
instead of frame-background-mode. Before setting it, test for its
nil value. Remove tests for frame-background-mode and frame
parameter `reverse'. Add test for "unspecified-fg".
* term/xterm.el (xterm-rxvt-set-background-mode):
* term/rxvt.el (rxvt-set-background-mode):
Set default-frame-background-mode instead of frame-background-mode.
2005-06-29 Juanma Barranquero <lekktu@gmail.com>
* imenu.el (imenu--completion-buffer):
...
...
lisp/term/rxvt.el
View file @
9b07ab0a
...
...
@@ -150,7 +150,7 @@ for the currently selected frame."
"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
))))
...
...
@@ -163,7 +163,7 @@ for the currently selected frame."
;; The following line assumes that white is the 15th
;; color in rxvt-standard-colors.
(
*
(
apply
'+
(
car
(
cddr
(
nth
15
rxvt-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