There is a GUI version of emacs out there, which I had once on a G5. I think it was called Aquamacs. I much prefer BBEdit. Old versions of BBEdit (and TextWrangler?) are available for download from the BBEdit website, after which the licence question arises, but I leave that to you.