Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs : -fh (full height) question

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.

like image 331
houbysoft Avatar asked Jun 05 '11 20:06

houbysoft


1 Answers

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.

like image 169
huaiyuan Avatar answered Sep 23 '22 00:09

huaiyuan