<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="https://stackoverflow.com/questions/91071/emacs-switch-to-previous-window">Emacs, switch to previous window</a>  </p>
</blockquote>



<p><code>other-window</code> advances me to the next window in the current frame, but I also want a way to move back to the previous window.</p>

<p>Emacs has <code>next-buffer</code> and <code>previous-buffer</code>, but no analogous interactive functions for window navigation.  Just <code>other-window</code>.</p>

Put this in your .emacs, and bind it to whatever key you like
```
(defun back-window ()
  (interactive)
  (other-window -1))
```