use the $EDITOR environment variable:
- if it is set: use this editor to edit text/source files
- otherwise, use emacs by default