To be honest, I don't familiar with emacs. Gvim is my favor editor under linux. Now I want to choose gvim as default editor.
Just one command line:
# export EDITOR=gvim
It seems octave use environment variable to decide which editor it should use.
I add this line to ".bashrc" to make sure it always work after start my pc;