From 588017927061cd95bcf2192f88917292913a7f11 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 8 Apr 2023 10:41:53 +0300 Subject: [PATCH] ; Minor addition to the Emacs FAQ * doc/misc/efaq.texi (Fullscreen mode on MS-Windows): Tell how to avoid the initial screen changing size on display without using the Registry. Suggested by David Hedlund . --- doc/misc/efaq.texi | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index 4a8c863230f..0a0c375d273 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi @@ -3133,13 +3133,23 @@ example, you can put the following in your init file: To avoid the slightly distracting visual effect of Emacs starting with its default frame size and then growing to fullscreen, you can add an -@samp{Emacs.Geometry} entry to the Windows registry settings. -@xref{X Resources,,, emacs, The GNU Emacs Manual}. - -To compute the correct values for width and height, first maximize the -Emacs frame and then evaluate @code{(frame-height)} and +@samp{Emacs.Geometry} entry to the Windows Registry settings. @xref{X +Resources,,, emacs, The GNU Emacs Manual}. To compute the correct +values for width and height you use in the Registry settings, first +maximize the Emacs frame and then evaluate @code{(frame-height)} and @code{(frame-width)} with @kbd{M-:}. +Alternatively, you can avoid the visual effect of Emacs changing its +frame size entirely in your init file (i.e., without using the +Registry), like this: + +@lisp +(setq frame-resize-pixelwise t) +(set-frame-position nil 0 0) +(set-frame-size nil (display-pixel-width) (display-pixel-height) t) +@end lisp + + @node Emacs in a Linux console @section How can I alleviate the limitations of the Linux console? @cindex Console, Linux console, TTY, fbterm -- 2.39.5