[There is] evidence that environments, schedules, and rituals restructure the writing process and amplify performance… The principles of memory retrieval suggest that certain practices should amplify performance. These practices encourage a state of flow rather than one of anxiety or boredom. Like strategies, these other aspects of a writer’s method may alleviate the difficulty of attentional overload. The room, time of day, or ritual selected for working may enable or even induce intense concentration or a favorable motivational or emotional state. Moreover, in accordance with encoding specificity, each of these aspects of method may trigger retrieval of ideas, facts, plans, and other relevant knowledge associated with the place, time, or frame of mind selected by the writer for work.
Ronald T. Kellogg, The Psychology of Writing. Read more at Brain Pickings.