|
From: | Nicolas Richard |
Subject: | Re: HowTo: Run a hook when a buffer becomes "current" |
Date: | Wed, 16 Dec 2015 22:51:43 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
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") -- Nicolas
[Prev in Thread] | Current Thread | [Next in Thread] |