How to maximize Emacs on Windows at startup?

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

    (defun resize-frame ()
    "Set size"
    (interactive)
    (set-frame-width (selected-frame) 110)
    (set-frame-height (selected-frame) 33)
    (set-frame-position (selected-frame) 0 1))
    

    following is the last function called in my .emacs files it sets the height and width of the screen it does work on both emacs 22 and emacs 23 on debian and mac os x. set the height and width numbers according to your screen.

提交回复
热议问题