[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HowTo: Run a hook when a buffer becomes "current"
From: |
David Kastrup |
Subject: |
Re: HowTo: Run a hook when a buffer becomes "current" |
Date: |
Thu, 17 Dec 2015 00:04:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Nicolas Richard <address@hidden> writes:
> raman <address@hidden> writes:
>
>> I was looking for a way of running a function when a buffer becomes
>> "current". I cant find any hooks in Emacs -- the closest is
>> buffer-list-update-hook -- but that gets called way too often
>> including when a buffer is buried, is visited transiently from within
>> lisp code etc.
>
> I think you're after window-configuration-change-hook, see
> (info "(elisp) Window Hooks")
That would be for "selected", not "current".
--
David Kastrup