I'm running emacs 26.3. I want to run a hook every time I switch to a buffer. However, I have not been able to find any kind of "buffer switch hook".
If I want to always run a function when switching to a buffer, do I have to do something like wrapping switch-to-buffer
with advice? Or is there some other way to accomplish this?