For changing octave default editorĀ open ".octaverc" file and add following command to it:
edit editor name of the editor
and replace "name of editor" with your desired editor name such as gedit. for example:
edit editorĀ gedit
then save the file and restart octave or run following command so that your change take place:
source(".octaverc").