Created
November 21, 2010 20:50
-
-
Save lovett/709135 to your computer and use it in GitHub Desktop.
Set the width, height, and x/y position of the current emacs frame
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 arrange-frame (w h x y) | |
"Set the width, height, and x/y position of the current frame" | |
(let ((frame (selected-frame))) | |
(delete-other-windows) | |
(set-frame-position frame x y) | |
(set-frame-size frame w h))) | |
(arrange-frame 160 50 2 22) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment