Done with remembering the mode and view used of a particular file (closes #269).