![[Dept of Engineering]](http://www.eng.cam.ac.uk/images/house_style/engban-s.gif)
Many other editors are designed to be started afresh each time you want to edit. You edit one file and then exit the editor. The next time you want to edit either another file or the same one, you must run the editor again. With these editors, it makes sense to use a command line argument to say which file to edit.
But starting a new emacs each time you want to edit a different file would be annoyingly slow and would fail to take advantage of emacs' ability to visit more than one file in a single editing session. If you
This facility goes wrong if you're in a windowless environment.
Get round that by adding this to your ~/.profile
# Sort out the terminal.
[ $TERM = network ] && TERM=xterm
# Set your default TERM here ^^^^^^^
if [ $TERM = "xterm" ]
then
export EDITOR=emacsclient
else
export EDITOR=emacs
fi
(thanks to itc10@eng for this tip)