X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/8dfff871bdf0e420c6f5570e72afc80471d40d51..81deba3d7a2b187d58fe26bd8b4eafb5687095e1:/doc/misc/efaq.texi diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index 84178277aa..cdf944041b 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi @@ -2674,8 +2674,16 @@ variable in the environment. @cindex Maximize frame @cindex Fullscreen mode -Use the function @code{w32-send-sys-command}. For example, you can -put the following in your @file{.emacs} file: +Beginning with Emacs 24.4 either run Emacs with the @samp{--maximized} +command-line option or put the following form in your @file{.emacs} +file: + +@lisp +(add-hook 'emacs-startup-hook 'toggle-frame-maximized) +@end lisp + +With older versions use the function @code{w32-send-sys-command}. For +example, you can put the following in your @file{.emacs} file: @lisp (add-hook 'emacs-startup-hook