Register file patterns for various modes with find-file-in-project