crontab – Specify default editor

To change the default vim editor to emacs:

In your ~/.bashrc file, set the following:

export VISUAL=emacs
export EDITOR=emacs