Created
June 17, 2010 23:28
-
-
Save jollm/442955 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 center-as-central-window () | |
"three windows with a large center window" | |
(interactive) | |
(delete-other-windows) | |
(split-window-horizontally)(split-window-horizontally) | |
(other-window 2) | |
(split-window-horizontally) | |
(delete-windows-for) | |
(other-window 2)) | |
(defun read-wide () | |
"center buffer between empty margins" | |
(interactive) | |
(center-as-central-window) | |
(let ((lb (get-buffer-create "left-marg")) | |
(rb (get-buffer-create "right-marg"))) | |
(other-window -1) | |
(switch-to-buffer lb) | |
(other-window -1) | |
(switch-to-buffer rb) | |
(other-window -1))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment