How to maximize Emacs on Windows at startup?

后端 未结 15 1257
天命终不由人
天命终不由人 2020-12-13 03:45

This is driving me crazy: I simply want Emacs to maximize to whatever screen resolution I have at startup. Ideally I like a cross-platform (Windows & Linux) solution tha

相关标签:
15条回答
  • 2020-12-13 04:37

    If you really want to run Emacs full screen without window chrome (title bar and max/min/close button), then try the mode below. This worked for me with Emacs 23.3.1 on XP SP3.

    http://www.martyn.se/code/emacs/darkroom-mode/

    0 讨论(0)
  • 2020-12-13 04:37

    The following snippet from emacswiki worked fine from me: (add to your startup config file)

    (defun jbr-init ()
    "Called from term-setup-hook after the default
    terminal setup is
    done or directly from startup if term-setup-hook not
    used.  The value
    0xF030 is the command for maximizing a window."
      (interactive)
      (w32-send-sys-command #xf030)
      (ecb-redraw-layout)
      (calendar)
      )
    (setq term-setup-hook 'jbr-init)
    (setq window-setup-hook 'jbr-init)
    
    0 讨论(0)
  • 2020-12-13 04:40

    This works reliably on Emacs 24.5.1 (i686-pc-mingw32):

    (add-to-list 'initial-frame-alist '(fullscreen . maximized))
    
    0 讨论(0)
提交回复
热议问题