The regexes match ".fo" or ".xsl" anywhere in the path of the visited file, not just at the end of its name,
so for example, if I visit
xsl-mode will be used instead of c-mode.
I'm attaching a patch.
Log in to post a comment.