Skip to content

Instantly share code, notes, and snippets.

@lovett
Created November 21, 2010 20:50
Show Gist options
  • Save lovett/709135 to your computer and use it in GitHub Desktop.
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
(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