:v: Added code to set editor modes