Mercurial > hg > xemacs
diff pers-init.el @ 17:ee87d53174b1
wide screen?
author | ht |
---|---|
date | Sat, 19 Apr 2008 19:04:25 +0100 |
parents | b53b1f1f2d4a |
children | cc9c7bc8194a |
line wrap: on
line diff
--- a/pers-init.el Sat Apr 19 19:03:58 2008 +0100 +++ b/pers-init.el Sat Apr 19 19:04:25 2008 +0100 @@ -409,8 +409,14 @@ (site-caseq (laptop (defun system-name () "francis.markup.co.uk"))) (cd (user-home-directory)) -(site-caseq (laptop (if (= (device-pixel-width (selected-device)) 1600) - ;; we're on a big external monitor - (progn - (set-frame-pixel-size (selected-frame) 900 1140) - (set-frame-position (selected-frame) -3 -20))))) +(site-caseq (laptop + (let ((pw (device-pixel-width (selected-device)))) + (if (= pw 1600) + ;; we're on a big external monitor + (progn + (set-frame-pixel-size (selected-frame) 900 1140) + (set-frame-position (selected-frame) -3 -20)) + (if (= pw 1280) + (progn + (set-frame-pixel-size (selected-frame) 640 740) + (set-frame-position (selected-frame) -3 -20)))))))