[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Different text/properties in active vs inactive mode line
From: |
Eli Zaretskii |
Subject: |
Re: Different text/properties in active vs inactive mode line |
Date: |
Sat, 30 Apr 2011 19:14:08 +0300 |
> From: sdn.gnuem@mailnull.com
> Date: Sat, 30 Apr 2011 11:25:40 -0400 (EDT)
>
> > If the mode-line face is `mode-line' and not `mode-line-inactive',
> > then the window is active.
>
> Is there a variable or function that will tell me the current face of
> the mode line?
Actually, there's a simpler method: Emacs uses the `mode-line' face
for the selected window, and `mode-line-inactive' for all the other
windows. So you can use the `selected-window' function and compare
its value to the window for which you want to change the mode-line
appearance.