When using emacs for writing erlang source code, I have made the following configuration. In the emacs, 6 windows are open at the same time, 4 windows for source code writing, 1 windows for terminal shell, 1 windows for erlang shell.
After one source code modification, I have use command "m-x ter
" to switch "terminal shell", then using "m-p
" for recovering last history command, then pressing "enter
" to run.
Then using "c-x, left
" to switch to erlang shell, then press m-p
to repeat last command.
The above two switch process seems a little long, could you have better solution?