<p>The problem is following: I want to automate the way my emacs starts.
It has to be split in two buffers and the slime-repl has to be started in the smallest (bottom) buffer. Plus, I want my file to be opened in the bigger (upper) buffer.
In my .emacs there are lines:</p>

<pre><code>(slime)
...
(split-window-vertically -6)
(switch-to-buffer (other-buffer))
(find-file "g:/Private/pa/pa2.lsp")
</code></pre>

<p>SLIME opens o.k. in the bottom buffer, but the file is opened in one of the background buffers, while I want it to be in front.</p>

<p>How to fix this?</p>

Try:
```
```
(other-window 1)
(find-file "g:/Private/pa/pa2.lsp")
```
```
instead of your last two lines.