Skip to main content
added 298 characters in body
Source Link
eflanigan00
  • 815
  • 5
  • 11

Just as @Drew states. I use this:

(defconst frame-default-top      0  "The 'top'  position property of a frame.")
(defconst frame-default-left     0  "The 'left' position property of a frame.")
(defconst frame-default-height  60  "The default frame height.")
(defconst frame-default-width  188  "The default frame width.")

(add-to-list 'default-frame-alist (cons 'left   frame-default-left))
(add-to-list 'default-frame-alist (cons 'top    frame-default-top))
(add-to-list 'default-frame-alist (cons 'height frame-default-height))
(add-to-list 'default-frame-alist (cons 'width  frame-default-width))

If you want only the initial frame use initial-frame-alist. I set both which is probably overkill.

(add-to-list 'initial-frame-alist (cons 'left   frame-default-left))
(add-to-list 'initial-frame-alist (cons 'top    frame-default-top))
(add-to-list 'initial-frame-alist (cons 'height frame-default-height))
(add-to-list 'initial-frame-alist (cons 'width  frame-default-width))

Just as @Drew states. I use this:

(defconst frame-default-top      0  "The 'top'  position property of a frame.")
(defconst frame-default-left     0  "The 'left' position property of a frame.")
(defconst frame-default-height  60  "The default frame height.")
(defconst frame-default-width  188  "The default frame width.")

(add-to-list 'default-frame-alist (cons 'left   frame-default-left))
(add-to-list 'default-frame-alist (cons 'top    frame-default-top))
(add-to-list 'default-frame-alist (cons 'height frame-default-height))
(add-to-list 'default-frame-alist (cons 'width  frame-default-width))

Just as @Drew states. I use this:

(defconst frame-default-top      0  "The 'top'  position property of a frame.")
(defconst frame-default-left     0  "The 'left' position property of a frame.")
(defconst frame-default-height  60  "The default frame height.")
(defconst frame-default-width  188  "The default frame width.")

(add-to-list 'default-frame-alist (cons 'left   frame-default-left))
(add-to-list 'default-frame-alist (cons 'top    frame-default-top))
(add-to-list 'default-frame-alist (cons 'height frame-default-height))
(add-to-list 'default-frame-alist (cons 'width  frame-default-width))

If you want only the initial frame use initial-frame-alist. I set both which is probably overkill.

(add-to-list 'initial-frame-alist (cons 'left   frame-default-left))
(add-to-list 'initial-frame-alist (cons 'top    frame-default-top))
(add-to-list 'initial-frame-alist (cons 'height frame-default-height))
(add-to-list 'initial-frame-alist (cons 'width  frame-default-width))
Source Link
eflanigan00
  • 815
  • 5
  • 11

Just as @Drew states. I use this:

(defconst frame-default-top      0  "The 'top'  position property of a frame.")
(defconst frame-default-left     0  "The 'left' position property of a frame.")
(defconst frame-default-height  60  "The default frame height.")
(defconst frame-default-width  188  "The default frame width.")

(add-to-list 'default-frame-alist (cons 'left   frame-default-left))
(add-to-list 'default-frame-alist (cons 'top    frame-default-top))
(add-to-list 'default-frame-alist (cons 'height frame-default-height))
(add-to-list 'default-frame-alist (cons 'width  frame-default-width))