How do I prevent other apps from modifying a file that is opened in EmEditor?

Go to Tools | Properties for All Configurations (or after you open the file, select Properties for Current Configuration on the Tools menu). Select the File page, and select Keep Locked in the Changed by Another Program dropdown.

Configuration File