Emacs is a free text editor written by Richard Stallman, which can be used as an ascii-oriented interface to Macaulay 2. The best way to edit Macaulay 2 code or to run Macaulay 2 is with emacs. Emacs is available as part of many operating systems, as well as from http://www.gnu.org/software/emacs/.