In Emacs, C-x o takes me to the next window.
What keyboard macro takes me to the previous window in Emacs?
There are some very good and complete answers here, but to answer the question in a minimalist fashion:
(defun prev-window () (interactive) (other-window -1)) (define-key global-map (kbd "C-x p") 'prev-window)