* Different buffer background depending on if window active
@ 2009-05-17 21:19 Deniz Dogan
2009-05-18 3:13 ` Stefan Monnier
2009-05-18 23:55 ` Lennart Borgman
0 siblings, 2 replies; 7+ messages in thread
From: Deniz Dogan @ 2009-05-17 21:19 UTC (permalink / raw)
To: Emacs-Devel devel
I've always wanted to have the currently active window in Emacs have a
different background color to see which one I'm currently "in" easier.
One could imagine this as a part of a much larger change to have a
whole set of different parameters depending on the currently active
window.
Has this feature been requested before? Would it be cumbersome to
implement? Is it desirable at all? Can this be hacked together using
simple Emacs Lisp?
Thanks,
Deniz Dogan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different buffer background depending on if window active
2009-05-17 21:19 Different buffer background depending on if window active Deniz Dogan
@ 2009-05-18 3:13 ` Stefan Monnier
2009-05-18 23:26 ` Johan Bockgård
2009-05-18 23:55 ` Lennart Borgman
1 sibling, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2009-05-18 3:13 UTC (permalink / raw)
To: Deniz Dogan; +Cc: Emacs-Devel devel
> I've always wanted to have the currently active window in Emacs have a
> different background color to see which one I'm currently "in" easier.
> One could imagine this as a part of a much larger change to have a
> whole set of different parameters depending on the currently active
> window.
> Has this feature been requested before? Would it be cumbersome to
> implement? Is it desirable at all? Can this be hacked together using
> simple Emacs Lisp?
It can probably be hacked together with a post-command-hook (or
a timer), together with face-remapping-alist.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different buffer background depending on if window active
2009-05-18 3:13 ` Stefan Monnier
@ 2009-05-18 23:26 ` Johan Bockgård
2009-05-19 0:14 ` Miles Bader
0 siblings, 1 reply; 7+ messages in thread
From: Johan Bockgård @ 2009-05-18 23:26 UTC (permalink / raw)
To: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I've always wanted to have the currently active window in Emacs have a
>> different background color to see which one I'm currently "in" easier.
>> One could imagine this as a part of a much larger change to have a
>> whole set of different parameters depending on the currently active
>> window.
>
>> Has this feature been requested before? Would it be cumbersome to
>> implement? Is it desirable at all? Can this be hacked together using
>> simple Emacs Lisp?
>
> It can probably be hacked together with a post-command-hook (or
> a timer), together with face-remapping-alist.
Changing the background through face-remapping-alist currently only
works for the text portion of the buffer, not for the actual window.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different buffer background depending on if window active
2009-05-17 21:19 Different buffer background depending on if window active Deniz Dogan
2009-05-18 3:13 ` Stefan Monnier
@ 2009-05-18 23:55 ` Lennart Borgman
2009-05-19 1:13 ` Sean O'Rourke
1 sibling, 1 reply; 7+ messages in thread
From: Lennart Borgman @ 2009-05-18 23:55 UTC (permalink / raw)
To: Deniz Dogan; +Cc: Emacs-Devel devel
On Sun, May 17, 2009 at 11:19 PM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
> I've always wanted to have the currently active window in Emacs have a
> different background color to see which one I'm currently "in" easier.
> One could imagine this as a part of a much larger change to have a
> whole set of different parameters depending on the currently active
> window.
>
> Has this feature been requested before? Would it be cumbersome to
> implement? Is it desirable at all? Can this be hacked together using
> simple Emacs Lisp?
An alternative that you can use is to customize the faces mode-line
and mode-line-inactive.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different buffer background depending on if window active
2009-05-18 23:26 ` Johan Bockgård
@ 2009-05-19 0:14 ` Miles Bader
0 siblings, 0 replies; 7+ messages in thread
From: Miles Bader @ 2009-05-19 0:14 UTC (permalink / raw)
To: emacs-devel
bojohan+news@dd.chalmers.se (Johan Bockgård) writes:
> Changing the background through face-remapping-alist currently only
> works for the text portion of the buffer, not for the actual window.
That's a bug -- it should be applying the default face to the post-e-o-b
background in the same way it does to the pre-e-o-b background.
There's also a similar (and perhaps associated) bug: the cursor size is
wrong when the cursor is at e-o-b, if the default face has been changed
via face-remapping-alist.
I've tried to search for a fix for these before, but man... the emacs
display code is soooooo large....
[btw, "e.ob." = "end-of-buffer"]
-Miles
--
Quotation, n. The act of repeating erroneously the words of another. The words
erroneously repeated.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different buffer background depending on if window active
2009-05-18 23:55 ` Lennart Borgman
@ 2009-05-19 1:13 ` Sean O'Rourke
2009-05-19 15:50 ` Deniz Dogan
0 siblings, 1 reply; 7+ messages in thread
From: Sean O'Rourke @ 2009-05-19 1:13 UTC (permalink / raw)
To: emacs-devel
Lennart Borgman <lennart.borgman@gmail.com> writes:
> On Sun, May 17, 2009 at 11:19 PM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
>> I've always wanted to have the currently active window in Emacs have a
>> different background color to see which one I'm currently "in" easier.
>> One could imagine this as a part of a much larger change to have a
>> whole set of different parameters depending on the currently active
>> window.
>>
>> Has this feature been requested before? Would it be cumbersome to
>> implement? Is it desirable at all? Can this be hacked together using
>> simple Emacs Lisp?
>
> An alternative that you can use is to customize the faces mode-line
> and mode-line-inactive.
At least on Cocoa/NextStep, you can set the frame parameter
`alpha' to a two-element list to have different alpha channels on
active and inactive frames. I have
(frame-parameter (selected-frame) 'alpha) ;; => (100 85)
which makes my other frame(s) slightly transparent.
I don't remember where I learned this, and have no idea where it
is documented.
/s
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Different buffer background depending on if window active
2009-05-19 1:13 ` Sean O'Rourke
@ 2009-05-19 15:50 ` Deniz Dogan
0 siblings, 0 replies; 7+ messages in thread
From: Deniz Dogan @ 2009-05-19 15:50 UTC (permalink / raw)
To: Sean O'Rourke; +Cc: emacs-devel
2009/5/19 Sean O'Rourke <seano@cs.ucla.edu>:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> On Sun, May 17, 2009 at 11:19 PM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
>>> I've always wanted to have the currently active window in Emacs have a
>>> different background color to see which one I'm currently "in" easier.
>>> One could imagine this as a part of a much larger change to have a
>>> whole set of different parameters depending on the currently active
>>> window.
>>>
>>> Has this feature been requested before? Would it be cumbersome to
>>> implement? Is it desirable at all? Can this be hacked together using
>>> simple Emacs Lisp?
>>
>> An alternative that you can use is to customize the faces mode-line
>> and mode-line-inactive.
>
> At least on Cocoa/NextStep, you can set the frame parameter
> `alpha' to a two-element list to have different alpha channels on
> active and inactive frames. I have
>
> (frame-parameter (selected-frame) 'alpha) ;; => (100 85)
>
> which makes my other frame(s) slightly transparent.
>
> I don't remember where I learned this, and have no idea where it
> is documented.
I extremely rarely use more than one frame, but very often more than
one window. It would be great if something like this was possible with
Emacs.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-05-19 15:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-17 21:19 Different buffer background depending on if window active Deniz Dogan
2009-05-18 3:13 ` Stefan Monnier
2009-05-18 23:26 ` Johan Bockgård
2009-05-19 0:14 ` Miles Bader
2009-05-18 23:55 ` Lennart Borgman
2009-05-19 1:13 ` Sean O'Rourke
2009-05-19 15:50 ` Deniz Dogan
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).