diff options
Diffstat (limited to 'doc/misc/efaq.texi')
| -rw-r--r-- | doc/misc/efaq.texi | 41 |
1 files changed, 9 insertions, 32 deletions
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index 631d7016acf..c20ad87f5f9 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi | |||
| @@ -3113,45 +3113,22 @@ prints using ANSI color escape sequences. Emacs includes the | |||
| 3113 | @code{ansi-color} package, which lets Shell mode recognize these | 3113 | @code{ansi-color} package, which lets Shell mode recognize these |
| 3114 | escape sequences. It is enabled by default. | 3114 | escape sequences. It is enabled by default. |
| 3115 | 3115 | ||
| 3116 | @node Fullscreen mode on MS-Windows | 3116 | @node Start Emacs Maximized |
| 3117 | @section How can I start Emacs in fullscreen mode on MS-Windows? | 3117 | @section How can I start Emacs in full screen? |
| 3118 | @cindex Maximize frame | 3118 | @cindex Maximize frame |
| 3119 | @cindex Fullscreen mode | 3119 | @cindex Fullscreen mode |
| 3120 | 3120 | ||
| 3121 | Beginning with Emacs 24.4 either run Emacs with the @samp{--maximized} | 3121 | Run Emacs with the @samp{--maximized} command-line option or put the |
| 3122 | command-line option or put the following form in your init file | 3122 | following form in your early init file (@pxref{Early Init File,,, |
| 3123 | (@pxref{Setting up a customization file}): | 3123 | emacs, The GNU Emacs Manual}). |
| 3124 | |||
| 3125 | @lisp | ||
| 3126 | (add-hook 'emacs-startup-hook 'toggle-frame-maximized) | ||
| 3127 | @end lisp | ||
| 3128 | |||
| 3129 | With older versions use the function @code{w32-send-sys-command}. For | ||
| 3130 | example, you can put the following in your init file: | ||
| 3131 | |||
| 3132 | @lisp | ||
| 3133 | (add-hook 'emacs-startup-hook | ||
| 3134 | (lambda () (w32-send-sys-command ?\xF030))) | ||
| 3135 | @end lisp | ||
| 3136 | |||
| 3137 | To avoid the slightly distracting visual effect of Emacs starting with | ||
| 3138 | its default frame size and then growing to fullscreen, you can add an | ||
| 3139 | @samp{Emacs.Geometry} entry to the Windows Registry settings. @xref{X | ||
| 3140 | Resources,,, emacs, The GNU Emacs Manual}. To compute the correct | ||
| 3141 | values for width and height you use in the Registry settings, first | ||
| 3142 | maximize the Emacs frame and then evaluate @code{(frame-height)} and | ||
| 3143 | @code{(frame-width)} with @kbd{M-:}. | ||
| 3144 | |||
| 3145 | Alternatively, you can avoid the visual effect of Emacs changing its | ||
| 3146 | frame size entirely in your init file (i.e., without using the | ||
| 3147 | Registry), like this: | ||
| 3148 | 3124 | ||
| 3149 | @lisp | 3125 | @lisp |
| 3150 | (setq frame-resize-pixelwise t) | 3126 | (push '(fullscreen . maximized) default-frame-alist) |
| 3151 | (set-frame-position nil 0 0) | ||
| 3152 | (set-frame-size nil (display-pixel-width) (display-pixel-height) t) | ||
| 3153 | @end lisp | 3127 | @end lisp |
| 3154 | 3128 | ||
| 3129 | Note that while some customizations of @code{default-frame-alist} | ||
| 3130 | could have undesirable effects when modified in @file{early-init.el}, | ||
| 3131 | it is okay to do it in this particular case. | ||
| 3155 | 3132 | ||
| 3156 | @node Emacs in a Linux console | 3133 | @node Emacs in a Linux console |
| 3157 | @section How can I alleviate the limitations of the Linux console? | 3134 | @section How can I alleviate the limitations of the Linux console? |