all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Screen size (pixels or whatever)
@ 2015-06-22 20:49 Vasily Korytov
  2015-06-22 20:52 ` Vasily Korytov
       [not found] ` <mailman.5472.1435016699.904.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Vasily Korytov @ 2015-06-22 20:49 UTC (permalink / raw)
  To: help-gnu-emacs

Hey,

How do I get screen size in Emacs?

I don’t mean frame-width, but I mean eventually the number of lines that are possible to fit on the screen.

That is: on one machine I have 1400х1050 and I use:

(setq default-frame-alist
    '((height . 53)
      (width . 120)
      (top . 50)
      (left . 380)))

On second one I have 1280x768 and I use:

(setq default-frame-alist
    '((height . 45)
      (width . 120)
      (top . 3)
      (left . 220)))

I want to glue this in one configuration file that works on both machines.

I would like to know, if there is a function, that would give me the number of pixels on the current display or some other mean to detect, is it a large screen or not.

-- 
   Vasily Korytov
   http://chillum.github.io




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-24  4:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-22 20:49 Screen size (pixels or whatever) Vasily Korytov
2015-06-22 20:52 ` Vasily Korytov
2015-06-23 14:23   ` Alan Schmitt
2015-06-23 14:59     ` Drew Adams
     [not found] ` <mailman.5472.1435016699.904.help-gnu-emacs@gnu.org>
2015-06-23  0:00   ` Emanuel Berg
2015-06-23  1:19   ` JohnF
2015-06-23  3:35     ` Marko Vojinovic
     [not found]     ` <mailman.5480.1435030538.904.help-gnu-emacs@gnu.org>
2015-06-24  4:57       ` JohnF

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.