8.5   Alternate Default Editor

In order to use an editor other than the default you must set the environment variable EDITOR to the command name. In order to use some other window besides xterm in which to execute a build, set the WIND_BUILDTOOL environment variable to that command.

Example 8-1:  Configuring emacs For Editing and Building

To use emacs as your default editor and build tool requires two steps:

  1. Set the Tornado environment variables as follows:

EDITOR='gnuclient -q' 
WIND_BUILDTOOL='gnudoit -q'

  1. Add these lines to your .emacs file if they are not already present:

;set up server mode 
(setq gnuserv-frame (selected-frame)) 
(gnuserve-start)

You can also add emacs to the Tools menu as described in Alternate Editor. You will still need to perform Step (2) in order to be able to call emacs from the menu.