5

Each time Emacs starts up, I'd like its window to take up the full height of my screen.

Now, from the man page, I found this could be done with the -fh switch.

It somewhat works, but is there a way I could do the following:

1) Specify the -fh option in .emacs, so I don't have to type it every time.

2) Make new frames (those you create with C-x 5 2, etc.) also obey this setting. Right now, even if I run emacs -fh, the new frames seem to completely ignore it.

Thanks.

houbysoft
  • 32,532
  • 24
  • 103
  • 156
  • well, there is always the option of running emacs in a terminal. Anyways, it's off topic here. This belongs to superuser.com – Alexandre C. Jun 05 '11 at 21:02
  • 1
    Yea, I thought so, but then I searched for emacs here and there were many similar (as in not programming per se) questions here, so I posted here. – houbysoft Jun 05 '11 at 21:05
  • Can't you alias emacs='emacs -fh'? If you want maximum usage of the screen, why not try a tiling window manager? – Chang Peng Jun 06 '11 at 02:04
  • Yes, that's what I have now, actually, but it seems there should be a cleaner way (for example, I'd have to change the keyboard shortcuts too, etc., it would be more practical if this could be in .emacs). Also, that still wouldn't solve 2).. Anyway, you're right, maybe a tiling wm would solve this (I tried one once, then went back to openbox), I'll look into it more. – houbysoft Jun 06 '11 at 03:23

1 Answers1

7

Try

(add-to-list 'initial-frame-alist `(fullscreen . fullheight))
(add-to-list 'default-frame-alist `(fullscreen . fullheight))

See Section 29.3.2: Initial Frame Parameters.

huaiyuan
  • 26,129
  • 5
  • 57
  • 63