[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [h-e-w] Re: Opening a frame on a second monitor
From: |
Drew Adams |
Subject: |
RE: [h-e-w] Re: Opening a frame on a second monitor |
Date: |
Thu, 5 Nov 2009 14:24:52 -0800 |
> > 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)"?
Yes. See the Elisp manual, node Backquote.
> 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?
You can use `M-:'.
M-: (x-display-pixel-width)