about summary refs log tree commit diff
path: root/emacs.d/init-settings.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-08-01T09·31+0200
committerVincent Ambo <vincent@spotify.com>2013-08-01T09·31+0200
commit580f642d4051aed2d61d1c8db1322507720d087d (patch)
tree7e8ec4f06da069a393116a3532a51ff31e5b667c /emacs.d/init-settings.el
parent459f0433e66c3a2c7f2b30df85267d9d9064faf2 (diff)
emacs: Function to toggle native/non-native fullscreen on OS X
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 aa702bf8bc11..f8e87ef0ab21 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>