Skip to content

Instantly share code, notes, and snippets.

@rdsr
Created November 16, 2010 04:51
Show Gist options
  • Save rdsr/701439 to your computer and use it in GitHub Desktop.
Save rdsr/701439 to your computer and use it in GitHub Desktop.
;;toggle full-screen
(defun toggle-fullscreen ()
(interactive)
(set-frame-parameter
nil
'fullscreen
(if (frame-parameter nil 'fullscreen)
nil
'fullboth)))
(global-set-key [(meta return)] 'toggle-fullscreen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment