bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20110: maximize emacs at startup


From: martin rudalics
Subject: bug#20110: maximize emacs at startup
Date: Sun, 15 Mar 2015 20:20:06 +0100

> The following, taken from the emacs faq, doesn't work:
> (add-hook 'emacs-startup-hook
>                 (lambda () (w32-send-sys-command ?\xF030)))
>
> I ran emacs with only this code in the init file. It appears to maximize
> the window then resizes it again.
>
>
> But the following does work:
> (add-hook 'emacs-startup-hook 'toggle-frame-maximized)
>
> This is on windows 8 with version
> *GNU Emacs 24.4.1 (i686-pc-mingw32)*
> * of 2014-10-24 on LEG570*
>
> I also tried window-setup-hook. Didn't work. Note that the code that uses
> w32-send-sys-command works fine if i evaluate it with C-x C-e.

Thank you very much.  I updated the manual accordingly.  Using the
--maximized command-line option should work as well.  Hence, Emacs
should behave on Windows just like on GNU/Linux.

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]