I am trying to create something like uniquely
, which renames the buffer to the full path within the projectile
project. I have the code working, however, I can't seem to figure out how to get it to run when a new buffer is open. It seems like Emacs does not provide any hooks for when a new buffer is opened.
What is a good way to run the code when a new buffer is opened? How does uniquely
do it? I tried reading its source, but I can't seem to find where the code gets triggered to run.
Thanks