Skip to content

Instantly share code, notes, and snippets.

@jonneale
Created May 29, 2013 10:21
Show Gist options
  • Save jonneale/5669342 to your computer and use it in GitHub Desktop.
Save jonneale/5669342 to your computer and use it in GitHub Desktop.
Emacs config to enable full screen toggling bound to a key
(defun toggle-fullscreen ()
"Toggle full screen"
(interactive)
(set-frame-parameter
nil 'fullscreen
(when (not (frame-parameter nil 'fullscreen)) 'fullboth)))
(global-set-key [f7] 'toggle-fullscreen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment