Reputation: 149
I have a little problem when I'm in the full screen mode in emacs , how can return to the default mode , for more explanation this is my problem .
I open a file in full-screen mode with emacs -fs filename.txt, after i want to reduce it to default or normal mode (size) . and thanks a lot for your help and your time I really appreciated
Upvotes: 6
Views: 1642
Reputation: 41618
I found this on EmacsWiki the other day:
(defun toggle-fullscreen ()
"Toggle full screen"
(interactive)
(set-frame-parameter
nil 'fullscreen
(when (not (frame-parameter nil 'fullscreen)) 'fullboth)))
Upvotes: 1
Reputation: 9390
You can revert the fullscreen parameter of a frame by eval'ing following code:
(modify-frame-parameters (selected-frame) '((fullscreen . nil)))
You may also modify programatically the size of current frame with
(set-frame-size (selected-frame) COLS ROWS)
As long as the property fullscreen has been set to nil before.
Upvotes: 0