5

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!

Luke Girvin
  • 13,221
  • 9
  • 64
  • 84
kpatelPro
  • 287
  • 2
  • 10

1 Answers1

4

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
  • 14,179
  • 14
  • 48
  • 71
  • 1
    emacs -f split-window-vertically -f other-window -f run-proc1 -f other-window -f run-proc2 thanks! – kpatelPro May 22 '10 at 01:53
  • 1
    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 May 22 '10 at 02:06