help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect window switches?


From: Pascal J. Bourguignon
Subject: Re: Detect window switches?
Date: Wed, 25 Sep 2013 11:28:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Joost Kremers <address@hidden> writes:

> Is there a way in Emacs to detect a window switch? Basically, I'd like
> to perform an action when a window showing a particular buffer gains or
> loses focus. Is there a hook or something that exposes this to Elisp?

have a look at: window-configuration-change-hook
I guess you will have to filter the exact condition yourself.

-- 
__Pascal Bourguignon__
http://www.informatimago.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]