views:

72

answers:

1

I have some processes that run from functions, i.e.: M-x run-proc1 M-x run-proc2

I would like to know what command to issue from the command line to run emacs with run-proc1 running in the upper window and run-proc2 running in the lower window.

Thanks!

+1  A: 

You might get better answers later, but appending this to your ~/.emacs.d/init.el might work.

(split-window-vertically)
(run-proc1)
(other-window)
(run-proc2)
(other-window)

Alternatively (for another approach), see this link.

Yktula
emacs -f split-window-vertically -f other-window -f run-proc1 -f other-window -f run-proc2 thanks!
kpatelPro
as for your original solution, I would like to do that as well. however, how can I first set there to be only one window, so that I always end up with two?
kpatelPro
--> (delete-other-windows) at top; thanks!
kpatelPro