I have used emacs for erlang programming. According to http://emacswiki.org/emacs/CompileCommand, I have configure c-c c for recompile.
In the emacs frame, 6 windows are open, top 3 are for erlang source code reading and writing.
In the below windows, one is supposed for the compie window.
But when different windows is active and recompile, the compile window will switch randomly. How to fix it in one perticular window?
I have used emacs for erlang programming. According to http://emacswiki.org/emacs/CompileCommand , I have configure
Share
If you start reading at C-hf
display-bufferRET (or in the manual at M-:(info "(elisp) Choosing Window")RET), you’ll find a bunch of ways in which you can modify the behaviour.It can get a little complex, but something like this might be all you need in your recompile function:
I always use dedicated windows when I want to keep things in the one place, so you might also find that useful to look into:
M-:
(info "(elisp) Dedicated Windows")RETI use the
toggle-window-dedicatedfunction from Pin Emacs buffers to windows (for cscope) (see also How do I make this Emacs frame keep its buffer and not get resized?)