From Locus Magazine: Cory Doctorow: Writing in the Age of Distraction:
- Short, regular work schedule
 - Leave yourself a rough edge
 - Don’t research
 - Don’t be ceremonious
 - Kill your word-processor
 - Realtime communications tools are deadly
 
Read the whole piece for the thoughts behind these items of advice.
There are equivalents for programming that come to mind. I wonder, am I sliding back into Emacs a task at a time because I want to kill my word-processor (my IDE – Eclipse?)? Is that why Netbeans is starting to appeal to me (seemingly less work configuring (playing?!) with IDE settings and concentrating on the task at hand)?