Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rotate emacs buffer splitter
(defun twist-split ()
(interactive)
(setq buffer2 (window-buffer (second (window-list))))
(if (window-top-child (frame-root-window))
(progn (delete-other-windows) (split-window-horizontally))
(progn (delete-other-windows) (split-window-vertically)))
(set-window-buffer (second (window-list)) buffer2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment