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.
The source of this document is in Macaulay2Doc/functions/setup-doc.m2:68:0.