What is a good way to assign a function to run when I open any file in a specified directory? Just like a hook but based on the location of a file rather than a major mode.
It would be nice if I could enable this by having a special file in the directory, but adding the hook in my central config file would be good too.