Select other window in Emacs at startup
Suppose I have two text files A.txt and B.txt. I choose to open both from
Emacs using
emacs -no-splash -mm A.txt B.txt
Now the frame is split in two parts vertically, and file A is shown in the
left window and file B in the right window. However file B is
automatically selected by Emacs. I can move the point to the other window
by entering C-x o or ESC-: (other-window 1). But I would like to do this
automatically, for instance at the command line or in the .emacs file.
I tried
emacs -no-splash -mm --eval `(other-window 1)` A.txt B.txt
but it did not work..
No comments:
Post a Comment