How to maximize Emacs on Windows at startup?

后端 未结 15 1260
天命终不由人
天命终不由人 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

    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)
    

提交回复
热议问题