next up previous contents
Next: Jed (edt) Up: Editing files Previous: Vi   Contents

Emacs

emacs is becoming the most common UNIX editor not only at the JAC but at many other places. Although most computer vendors do not include it with their version of UNIX, it is free and easily available through sources on the Internet. There are also versions which run under VMS, and for this reason it is the supported editor of choice at the JAC.

Unlike vi, emacs is not a ``modal'' editor. Special functions, as in EDT, are implemented with control keys, and any key not defined to execute a function will be inserted in the text. By default these control keys are not mapped to your keypad, but you can set this up if you wish. If you are really keen on EDT, you can even set up your keypad so that emacs looks almost exactly like it.

There are a few special functions of emacs you should know about. First, for those new to it, emacs has a tutorial mode which can greatly help you to learn your way around. The first time you invoke emacs, it will tell you how to run this (note: since this isn't mentioned until well into the tutorial - you get out of emacs using ^X^C). Second, it has a much nicer ``undo'' function than vi. Third, it saves the previous version of the file by appending a ~ to the original filename, so if you do something silly you can still get this previous version back. And finally, it has a semi-automatic recovery for aborted editing sessions. If a related journal file exists which is newer than the file you invoke emacs on, it will inform you, and allow you to recover all the changes that were made during the aborted session.

Manuals are available on using emacs, although for many people the tutorial is enough to get them well on their way. Since the manual is rather extensive a 4-page summary is also available at JAC. Use emacskeys to list, install, and print the relevant files. For the full manual contact Remo Tilanus.


next up previous contents
Next: Jed (edt) Up: Editing files Previous: Vi   Contents
h.stilmack@jach.hawaii.edu