Skip to content

Instantly share code, notes, and snippets.

@banister
Created December 12, 2008 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banister/35223 to your computer and use it in GitHub Desktop.
Save banister/35223 to your computer and use it in GitHub Desktop.
(defun rotate-windows-helper(x d)
(if (equal (cdr x) nil) (set-window-buffer (car x) d)
(set-window-buffer (car x) (window-buffer (cadr x))) (rotate-windows-helper (cdr x) d)))
(defun rotate-windows
(rotate-windows-helper (window-list) (window-buffer (car (window-list)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment