Created
November 13, 2009 06:30
-
-
Save sirn/233641 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
;; Resize Frame on Horizontal Splitting. | |
;; Written by Kridsada Thanabulpong <naises@gmail.com>. | |
;; Published as public domain. | |
(setq default-width (frame-width)) | |
(when window-system | |
(add-hook 'window-configuration-change-hook | |
'(lambda () | |
(setq windows ()) | |
(dolist (w (window-list)) | |
(setq windows (cons (car (window-edges w)) windows))) | |
(set-frame-width (selected-frame) | |
(* default-width | |
(length (delete-dups windows))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment