Skip to main content
simplified example
Source Link
lawlist
  • 19.7k
  • 5
  • 44
  • 128

Here is an example using some of the functions mentioned in the comment and link underneath the original question hereinabove:

(let*let ((frame (selected-frame)) (display-pixel-width (display-pixel-width))   (one-half-display-pixel-width (/ (display-pixel-width) 2))) (set-frame-width frame one-half-display-pixel-width nil 'pixelwise) (set-frame-position frame 0 0)) 

FYI:  Feature request #21415 was incorporated into Emacs 25 -- frame creation may now include a pixel specification -- this includes items such as the initial-frame-alist, default-frame-alist, and the make-frame function.

Example of usage for the width parameter: '(width . (text-pixels . 1900))

Example of usage for the height parameter: '(height . (text-pixels . 1054))

Here is an example using some of the functions mentioned in the comment and link underneath the original question hereinabove:

(let* ((frame (selected-frame)) (display-pixel-width (display-pixel-width))   (one-half-display-pixel-width (/ display-pixel-width 2))) (set-frame-width frame one-half-display-pixel-width nil 'pixelwise) (set-frame-position frame 0 0)) 

FYI:  Feature request #21415 was incorporated into Emacs 25 -- frame creation may now include a pixel specification -- this includes items such as the initial-frame-alist, default-frame-alist, and the make-frame function.

Example of usage for the width parameter: '(width . (text-pixels . 1900))

Example of usage for the height parameter: '(height . (text-pixels . 1054))

Here is an example using some of the functions mentioned in the comment and link underneath the original question hereinabove:

(let ((frame (selected-frame)) (one-half-display-pixel-width (/ (display-pixel-width) 2))) (set-frame-width frame one-half-display-pixel-width nil 'pixelwise) (set-frame-position frame 0 0)) 

FYI:  Feature request #21415 was incorporated into Emacs 25 -- frame creation may now include a pixel specification -- this includes items such as the initial-frame-alist, default-frame-alist, and the make-frame function.

Example of usage for the width parameter: '(width . (text-pixels . 1900))

Example of usage for the height parameter: '(height . (text-pixels . 1054))

added 408 characters in body
Source Link
lawlist
  • 19.7k
  • 5
  • 44
  • 128

Here is an example using some of the functions mentioned in the comment and link underneath the original question hereinabove:

(let* ((frame (selected-frame)) (display-pixel-width (display-pixel-width)) (one-half-display-pixel-width (/ display-pixel-width 2))) (set-frame-width frame one-half-display-pixel-width nil 'pixelwise) (set-frame-position frame 0 0)) 

FYI:  Feature request #21415 was incorporated into Emacs 25 -- frame creation may now include a pixel specification -- this includes items such as the initial-frame-alist, default-frame-alist, and the make-frame function.

Example of usage for the width parameter: '(width . (text-pixels . 1900))

Example of usage for the height parameter: '(height . (text-pixels . 1054))

Here is an example using some of the functions mentioned in the comment and link underneath the original question hereinabove:

(let* ((frame (selected-frame)) (display-pixel-width (display-pixel-width)) (one-half-display-pixel-width (/ display-pixel-width 2))) (set-frame-width frame one-half-display-pixel-width nil 'pixelwise) (set-frame-position frame 0 0)) 

Here is an example using some of the functions mentioned in the comment and link underneath the original question hereinabove:

(let* ((frame (selected-frame)) (display-pixel-width (display-pixel-width)) (one-half-display-pixel-width (/ display-pixel-width 2))) (set-frame-width frame one-half-display-pixel-width nil 'pixelwise) (set-frame-position frame 0 0)) 

FYI:  Feature request #21415 was incorporated into Emacs 25 -- frame creation may now include a pixel specification -- this includes items such as the initial-frame-alist, default-frame-alist, and the make-frame function.

Example of usage for the width parameter: '(width . (text-pixels . 1900))

Example of usage for the height parameter: '(height . (text-pixels . 1054))

Source Link
lawlist
  • 19.7k
  • 5
  • 44
  • 128

Here is an example using some of the functions mentioned in the comment and link underneath the original question hereinabove:

(let* ((frame (selected-frame)) (display-pixel-width (display-pixel-width)) (one-half-display-pixel-width (/ display-pixel-width 2))) (set-frame-width frame one-half-display-pixel-width nil 'pixelwise) (set-frame-position frame 0 0))