Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@igaiga
Created April 19, 2010 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igaiga/371037 to your computer and use it in GitHub Desktop.
Save igaiga/371037 to your computer and use it in GitHub Desktop.
; 画面の大きさにあわせてウィンドウ高さ調整
; mac でデュアルディスプレイにすると、 x-display-pixel-height が 2画面の和になる
(setq expected_height 30) ; default
(if (= (x-display-pixel-height) 2000) (setq expected_height 60))
(if (= (x-display-pixel-height) 800) (setq expected_height 39))
(set-frame-height nil expected_height)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment