setupEmacs()
A backup files is made carefully, and if a mangled initialization file is detected, it will not be modified. The lines added are bracketed by comment lines containing the phrases Macaulay 2 start and Macaulay 2 end. The function setup does all this and more.
The object setupEmacs is a method function.