I am using these commands in order to customize the height and the width of the Emacs frames when it starts:
(add-to-list 'default-frame-alist '(height . 50))
(add-to-list 'default-frame-alist '(width . 120))
My goal was to have Emacs use all the available height of my screen. The problem is that up to height 50 (circa) the frame is getting bigger as expected but from that point on it stops, although its height hasn't reached the maximum, as you can see in the image below:
After the start-up I can maximize it with the mouse. Why is that happening and after a number the frames can't even reach their maximum? How can I make it cover the whole screen's height?
set-frame-size
(using the optional pixelwise argument) andset-frame-position
. If you are happy with almost perfect and just about right, then the other forum participants will recommend things liketoggle-frame-maximized
. Here is the link to the relevant documentation: http://www.gnu.org/software/emacs/manual/html_node/elisp/Size-and-Position.html Here is what I use for OSX and Windows: http://stackoverflow.com/a/18711628/2112489 – lawlist May 11 '15 at 05:05default-frame-alist
- that's why it's a user option. But I fear that you are trying to do something else, which I haven't fathomed... – Drew May 11 '15 at 05:12pixelwise
arg tot
is the solution here. – Kaushal Modi May 11 '15 at 10:53(fullscreen . fullheight)
in thedefault-frame-alist
, which achieves what OP wants (unless I'm misunderstanding something). – Dan May 11 '15 at 12:49frame-resize-pixelwise
tot
. – Kaushal Modi May 11 '15 at 13:00(fullscreen . fullheight)
does. – Dan May 11 '15 at 13:04t
allows user to set the height/width in number of pixels instead of characters. And that's what, I believe, will allow the OP to set the height perfectly. – Kaushal Modi May 11 '15 at 13:09(fullscreen . fullheight)
? Look again at the post I linked: one of the answers explains that your options for thefullscreen
parameter arefullheight
,fullwidth
,fullboth
, andmaximized
. The answer is already there. – Dan May 12 '15 at 10:43(fullscreen .fullheight)
in thedefault-frame-alist
, I get a frame that is maximized vertically but not horizontally on startup. From the command line, you can also enteremacs -fh
. – Dan May 12 '15 at 10:54