When I open emacs, the frame size is set to: width 85 and height 40.
Is there a keybinding to toggle between maximizing the frame, and going back to the previous frame size of 85 x 40
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityTo maximize the frame, but not make it take up the whole screen, you can use toggle-frame-maximized
, which is on M-f10 by default. C-h f toggle-frame-maximized:
toggle-frame-maximized is an interactive compiled Lisp function in
`frame.el'.
It is bound to <M-f10>, ESC <f10>.
(toggle-frame-maximized &optional FRAME)
Probably introduced at or before Emacs version 24.4.
Toggle maximization state of FRAME.
Maximize selected frame or un-maximize if it is already maximized.
There's a function called toggle-frame-fullscreen
which looks to be bound to f11
key by default. You can use C-h f
to call describe-function
and put toggle-frame-fullscreen
at the prompt. It will tell you about how the function works and what key it is currently bound to, if any.
toggle-frame-maximized
, which is on M-f10
F11
? If you don't resize the frame, it will toggle between full screen and window with initial size.