As per title, I want to define a kill buffer hook with the variable kill-buffer-hook
and the function should be able to detect when (kill-buffer )
has been called interactively.
Is this possible?
The use case is in that I'd like to control the buffer displayed after killings. Anyway, there are a lot of hidden buffers opened and killed in the background, which should not trigger the hook actions.