Created
December 19, 2016 18:28
-
-
Save EricCrosson/e2e01335cfdcc49e758ca984f4440e8a to your computer and use it in GitHub Desktop.
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 follow-this-buffer () | |
"Open the current buffer in `follow-mode`. Additionally, open | |
as many vertical windows as possible with 80 columns in each." | |
(interactive) | |
(delete-other-windows) | |
(while (< 80 (window-width)) | |
(split-window-horizontally) | |
(balance-windows)) | |
(delete-window) | |
(balance-windows) | |
(follow-mode t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment