about summary refs log tree commit diff
path: root/emacs.d/init-settings.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/init-settings.el')
-rw-r--r--emacs.d/init-settings.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs.d/init-settings.el b/emacs.d/init-settings.el
index aa702bf8bc..f8e87ef0ab 100644
--- a/emacs.d/init-settings.el
+++ b/emacs.d/init-settings.el
@@ -147,6 +147,11 @@ comment as a filename."
 ;; Don't use Apple's native fullscreen (FIXME: Change with Mavericks)
 (setq ns-use-native-fullscreen nil)
 
+(defun toggle-native-fullscreen ()
+  "Toggles between native and non-native OS X fullscreen"
+  (interactive)
+  (setq ns-use-native-fullscreen (not ns-use-native-fullscreen)))
+
 ;; ## Navigation and key bindings ##
 
 ;; Navigate windows with M-<arrows>