Report question

Question: How do I associate a minor mode to a particular file or a set of files based on extension?