Emacs in console mode goes beyond the window size. What do I do?
With Emacs 20.3 and previous version, Emacs uses the size of the console buffer as the frame size. If your console window has buffer larger than the window (e.g., it uses a verical scrollbar), then Emacs’ frame will be larger than the console window. To work around this problem, make the console buffer the size of the console window. Or, if you have source, apply this patch to src/w32console.c. Since version 20.4 this behaviour is now controlled via the variable “w32-use-full-screen-buffer”. So to fix this include the following lines in your .emacs file: ;; Make sure that Emacs in console mode doesn’t go beyond the ;; size of the Dos box in use. ;; (Not needed in emacs 20.4+) (setq w32-use-full-screen-buffer nil) • POSITION To reposition Emacs, click on the title bar of the console window and drag it. • COLOR Under the NT interface, open the “-” menu. Select “Screen Colors…”, and use the dialog to choose the colors you want to use for the window. Be sure to check the “Save Configurat