[Top][All Lists]

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

HowTo: Run a hook when a buffer becomes "current"

From: raman
Subject: HowTo: Run a hook when a buffer becomes "current"
Date: Wed, 16 Dec 2015 08:37:57 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

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

Is there a hook that I'm missing, or  is advice the only fallback I have?

reply via email to

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