add a WRIT function to toggle a distraction-free writing mode