JaCkO91
JaCkO91

Reputation: 149

How to reduce the full screen mode in emacs

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

Answers (3)

user9477548
user9477548

Reputation: 97

F11 - Toggle Full Screen Mode.

Upvotes: 3

legoscia
legoscia

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

juanleon
juanleon

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

Related Questions