Created
February 25, 2016 20:30
-
-
Save etherald/dcdcf579751c75a2c796 to your computer and use it in GitHub Desktop.
rotate emacs buffer splitter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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