Created
September 13, 2014 01:08
-
-
Save leodemoura/76e9e6e9b13bb2727658 to your computer and use it in GitHub Desktop.
full scree emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ======================================= | |
;; Full Screen | |
(defun toggle-fullscreen (&optional f) | |
(interactive) | |
(let ((current-value (frame-parameter nil 'fullscreen))) | |
(set-frame-parameter nil 'fullscreen | |
(if (equal 'fullboth current-value) | |
(if (boundp 'old-fullscreen) old-fullscreen nil) | |
(progn (setq old-fullscreen current-value) | |
'fullboth))))) | |
(global-set-key [(ctrl f2)] 'toggle-fullscreen) | |
(add-hook 'after-make-frame-functions 'toggle-fullscreen) | |
;; ======================================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment