Created
April 5, 2010 00:06
-
-
Save anonymous/355833 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
;; 画面の行数を取得 | |
(defun my-get-frame-rows() | |
"get frame rows" | |
(let ( | |
(rows (round (/ (x-display-pixel-height) (frame-char-height)))) | |
) | |
(- rows 3) | |
) | |
) | |
;; 画面半分になる幅を取得 | |
(defun my-get-frame-cols() | |
"get frame cols" | |
(let ( | |
(cols (round (/ (x-display-pixel-width) (frame-char-width)))) | |
) | |
(- (round (/ cols 2)) 1) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment