help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h-e-w] Re: Opening a frame on a second monitor


From: BKnoth
Subject: [h-e-w] Re: Opening a frame on a second monitor
Date: Thu, 05 Nov 2009 14:07:29 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4

On 11/5/2009 10:33 AM, Drew Adams wrote:
Thanks - you answered my question. The following frame alist opens a
frame on my second monitor when used with the make-frame function.

(setq second-frame-alist
                '((top . 0)
                  (left . -1280)
                  (width . 150)
                    ...

FYI - You can use (x-display-pixel-width) to pick up the `1280' value
automatically, so it is correct regardless of the current display. In the case
of yours, it will be 1280.

So you could, if you wanted, use:
(setq second-frame-alist
       `((top . 0)
         (left . ,(x-display-pixel-width))
         (width . 150)
         ...




Did you mean to have the "," in front of "(x-display-pixel-width)"? Also, the "(x-display-pixel-width)" function is in frame.el but I can't call it without making it interactive. What's the proper way to call a function that doesn't show up as an emacs command?

Thanks for your help,

Bruce






reply via email to

[Prev in Thread] Current Thread [Next in Thread]