Some minor cleaning up [ci skip].
Some minor cleaning up [ci skip].
Some work on allowing each file to have its 'own' mode and view (#269).