One can use
auto-mode-alist to define modes based on the regex and the filename. However I want to use different modes for files depending on which folder they are in.
So, for example, in a django project, I might want to use
*.html files, but in all other projects, I would want to use the default mode for
How can I configure emacs to do this?