set editor to read only in various situations, such as with readme, and while navigating