Skip to content

Instantly share code, notes, and snippets.

@etherald
Created February 25, 2016 20:30
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 etherald/dcdcf579751c75a2c796 to your computer and use it in GitHub Desktop.
Save etherald/dcdcf579751c75a2c796 to your computer and use it in GitHub Desktop.
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